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: https://www.evernote.com/shard/s369/sh/b4e75323-c651-4638-bff7-89bd44a51332/032ba9293574120a70a658d09229e38d/res/edf8f631-d5b4-470a-bf29-11cc2bf84262/skitch.jpg