Re: Count amount of non-continuous blocks in an image
Alright, got it. Thank yousnibgo wrote: ↑2020-03-18T23:49:05-07:00For the flower image, the input has transparent black pixels, with bands of transparent white at top and bottom. We can see these with:The result sixflower_na.png is:
Code: Select all
magick sixFlower.png -alpha off sixflower_na.png
The connected-component list correctly shows six components that are neither black nor white.
You now use a v7 version of IM. I suggest you should use "magick" instead of "convert".