I want to be able to generate contours that do not include lines on data/nodata borders, 'nodata' being any value either outside the grid or a specifically chosen one inside of it, commonly f32::MAX or f64::MAX, e.g. (nodata marked red):
Without nodata handling:
With nodata handling:
This also prevents a ring forming around the whole dataset, as seen in https://github.com/mthh/contour-rs/issues/7. While I'm aware of the workaround proposed in the issue, it is not sufficiently performant for me.
I started implementing this feature here: https://github.com/SenseLabsDE/contour-rs/tree/nodata, but the current version is relatively inefficient and results in slowdowns even if the feature is unused.
I want to be able to generate contours that do not include lines on data/nodata borders, 'nodata' being any value either outside the grid or a specifically chosen one inside of it, commonly![image](https://github.com/mthh/contour-rs/assets/66856670/aa57b7d0-426b-4fd0-b4fe-dde86654f296)
f32::MAX
orf64::MAX
, e.g. (nodata marked red): Without nodata handling:With nodata handling:![image](https://github.com/mthh/contour-rs/assets/66856670/7048475e-7052-432a-a99d-c2f86f3f0b28)
This also prevents a ring forming around the whole dataset, as seen in https://github.com/mthh/contour-rs/issues/7. While I'm aware of the workaround proposed in the issue, it is not sufficiently performant for me. I started implementing this feature here: https://github.com/SenseLabsDE/contour-rs/tree/nodata, but the current version is relatively inefficient and results in slowdowns even if the feature is unused.