object detection using pixel value
hi i need to detect cloud shadow using pixel values the condtion is
450<band8<775 IF it's true === cloud shadow
add a comment
hi i need to detect cloud shadow using pixel values the condtion is
450<band8<775 IF it's true === cloud shadow
it's doubtful, that your "object detection" will work, but applying the "condition" is not so hard:
Mat data = ... // single channel input;
Mat lo = data > 450;
Mat hi = data < 775;
Mat shadow = lo & hi; // bitwise_and
resulting in a "mask", where "shadow pixels" are 255 and the rest is 0
Asked: 2020-06-05 23:16:36 -0600
Seen: 128 times
Last updated: Jun 06 '20