Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate return data type for operators > and < #135

Open
matthewhanson opened this issue Jun 1, 2018 · 1 comment
Open

Investigate return data type for operators > and < #135

matthewhanson opened this issue Jun 1, 2018 · 1 comment

Comments

@matthewhanson
Copy link
Member

The > and < operators use the CImg threshold function and return the same datatype as the input data, even though they are equivalent to bytes (0 and 1). Investigate impact of changing return array to uint8.

@akater320
Copy link
Contributor

There could be some problems with INF/NAN propagation. (I know it's used in GeoAlgorithms::indices.)
Round-tripping the CImg through GeoRaster.read(), which converts NAN/INF to nodata(), might get around any problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants