Search numpy image array for 2d sub-array
Essentially, I have a numpy image array and I'm trying to find if it
contains a 2x2 block of particular RGB pixel values. So, for example, if
my (simplified) image array was something like:
A B C D E F
G H I J K L
M N O P Q R
S T U V W X
I am trying to check if it contains, say:
J K
P Q
I'm pretty new to numpy so I'd appreciate any help on this, thanks.
No comments:
Post a Comment