gnuastro-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-devel] [bug #53362] Can't use max 8-bit value in Arithmetic


From: Mohammad Akhlaghi
Subject: [gnuastro-devel] [bug #53362] Can't use max 8-bit value in Arithmetic
Date: Fri, 16 Mar 2018 13:24:00 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:59.0) Gecko/20100101 Firefox/59.0

URL:
  <http://savannah.gnu.org/bugs/?53362>

                 Summary: Can't use max 8-bit value in Arithmetic
                 Project: GNU Astronomy Utilities
            Submitted by: makhlaghi
            Submitted on: Fri 16 Mar 2018 06:23:59 PM CET
                Category: Arithmetic
                Severity: 3 - Normal
              Item Group: Output not reasonable
                  Status: Postponed
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The maximum of the 8-bit (or any other unsigned integer type) or the minimum
of the signed integer types cannot be used in Arithmetic because Gnuastro
defines them as blank values. 

But in some contexts, these values may be meaningful (for example if you want
to invert the pixels in an 8-bit image, you want to calculate 255 - p).
Therefore, currently such operations are not possible with Arithmetic (the
output will be completely blank).

To fix this, we need to add an option to Arithmetic so for integer types, it
can ignore the blank values (and just treat them as a number).




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53362>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]