You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using rust-ndarray to do some image processing. I need to mask certain pixels in an image based on a classification mask (is it water, is it vegetation, etc.). Python's NumPy has the notion of an associated mask, and some imaging libraries have the notion of a "NoData" value. The mask is then used to mark a pixel as "ignore" in subsequent processing.
Is there an "idiomatic rust-ndarray way" to do this?
The pixel values are u8 or u16 so NaN isn't a usable proxy for this capability.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using rust-ndarray to do some image processing. I need to mask certain pixels in an image based on a classification mask (is it water, is it vegetation, etc.). Python's NumPy has the notion of an associated mask, and some imaging libraries have the notion of a "NoData" value. The mask is then used to mark a pixel as "ignore" in subsequent processing.
Is there an "idiomatic rust-ndarray way" to do this?
The pixel values are
u8
oru16
soNaN
isn't a usable proxy for this capability.Beta Was this translation helpful? Give feedback.
All reactions