Dear All,
I have a difficult label_region question (at least for me).
I have an image/array im[300, 300, 3] and I want to compare the the
value of of each element in each channel and write the bigger in a new
array imnew[300,300] keeping the information from which channel is the
element value in the new array.
for example if im[i, j, 0] qt im[i, j, 1] and im[i, j, 0] qt im[i, j,
2] then imnew[i, j] = im[i, j, 0]
and finally display the new array by giving red color for the elements
from the first channel, green color for elements from the second
channel, and blue color for elements from the third channel.
I have tried the label_region function, but I could not understand how
it work. It is so confusing function.
Thank you in advance,
MD


|