mlampros / OpenImageR

Image processing Toolkit in R
https://mlampros.github.io/OpenImageR/
57 stars 10 forks source link

ignore values #10

Closed dschneiderch closed 6 years ago

dschneiderch commented 6 years ago

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?

mlampros commented 6 years ago

@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?

mlampros commented 6 years ago

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