[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61698] Mean operator not returning NaN for blank regions when inpu
From: |
Mohammad Akhlaghi |
Subject: |
[bug #61698] Mean operator not returning NaN for blank regions when input is integer |
Date: |
Sat, 18 Dec 2021 12:36:58 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0 |
URL:
<https://savannah.gnu.org/bugs/?61698>
Summary: Mean operator not returning NaN for blank regions
when input is integer
Project: GNU Astronomy Utilities
Submitted by: makhlaghi
Submitted on: Sat 18 Dec 2021 05:36:56 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 the inputs to the 'mean' operator don't contain any data in a pixel, the
output pixel should have a NaN value (the output of mean is always a floating
point numerical data type).
However, when the inputs are integer types, this doesn't happen and large
negative values are used instead (for example -2.14748e+09 when the inputs are
32-bit integers).
This bug was reported by Zohre Ghaffari.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61698>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #61698] Mean operator not returning NaN for blank regions when input is integer,
Mohammad Akhlaghi <=