Using skimage for non-rectangular image areas
问题 Let's say I'm concerned with part of an image that I'm wanting to calculate a GLCM for that's not rectangular. How should I go about this? I've made a masking procedure that zeroes out the portion of the image that I don't care about, I just don't know how to take this "masked" image without considering the zeroed out portions of the image... Thanks for your help! 回答1: If you are able to assign the zero intensity value to background pixels, you can obtain the GLCM of the region of interest by