Extracting Shapes that meet a certain criteria from an Image
问题 Let's say I have an image that I want to extract certain shapes from. This image has a plethora of shapes, but I'm only concerned about the shapes that are filled with diagonal lines. Such an image could look like this: Since I only care about shapes that have diagonal lines in them, I'm trying to use this image to generate one that looks like this: Currently, I'm attempting to do this with convolution. I start by convolving the image with this matrix: ] Which produces an image that looks