mlampros/OpenImageR

ignore values

dschneiderch opened this issue · 2 comments

i'm trying to use edge_detection() to detect snow line in a satellite image but I would like to ignore pixels classified as clouds or water. when i tried to set clouds or water to NA there is an error. i would only like to detect the edge between snow cover and bare ground. Is there another way to ignore a value in the detection algorithm?

@dschneiderch I'm sorry for the late reply,

the fact is that the edge_detection() function can not handle missing values that's why you receive the error.
Would you mind sharing a reproducible example (or reproduce the error) to attempt to adjust the function for your task?

I close the issue for now, feel free to re-open it.