Detect whitespace and cut image

Jun 8, 2016 at 11:10 PM
I would like to know if it is possible in ImageMagick.Net to for example: I have an image and in that image there are pens vertically aligned side by side and are separated by whitespace. I would like to cut each pen out into separate images. Is this possible in ImageMagick? See the link as an example: