[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnuastro-devel] [bug #55298] Arithmetic reading 255 on command-line as
From: |
Mohammad Akhlaghi |
Subject: |
[gnuastro-devel] [bug #55298] Arithmetic reading 255 on command-line as blank |
Date: |
Thu, 27 Dec 2018 12:14:49 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0 |
URL:
<https://savannah.gnu.org/bugs/?55298>
Summary: Arithmetic reading 255 on command-line as blank
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Thu 27 Dec 2018 05:14:48 PM UTC
Category: Arithmetic
Severity: 3 - Normal
Item Group: Output not reasonable
Status: In Progress
Privacy: Public
Assigned to: makhlaghi
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
When you want to select pixels with a label of 255 (for example on
NoiseChisel's output) with Arithmetic, it doesn't select them. This is because
255 fits into an unsigned 8-bit value, so it is stored with that type. But
being the maximum value, 255 is also the value used for blank in this type.
So when the user gives 255 to Arithmetic (and in particular the library's
`gal_type_string_to_number' function, it should be defined as belonging to one
larger type.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?55298>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [gnuastro-devel] [bug #55298] Arithmetic reading 255 on command-line as blank,
Mohammad Akhlaghi <=