Image processing

For general discussion related FlowStone
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Image processing

Post by markholtuk »

Will it be possible to connect images to the code component and/or other modules to do image processing/analysis?

Thanks,

Mark
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Re: Image processing

Post by markholtuk »

Is the question too difficult or vague to understand?
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Re: Image processing

Post by markholtuk »

Somewhat disappointed that somebody in the know can't answer this. I guess I'll have to take it as a no. A shame really.
Morph
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: Image processing

Post by Morph »

You can't connect images directly to a code primitive. Code primitive is for streams at sample-rate like audio. Better is to use the green primitives for image data to keep the cpu down. However it is also possible to "hop" in the code primitive to make it process slower.
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Re: Image processing

Post by markholtuk »

Thanks for the reply morph. Thought I was talking to myself for a while there :D

I've been using Synthmaker for a while now, so I know a bit about data flow. Just learning Flowstone now and would love to do in depth image processing. It's my day job and I currently use Mathematica which makes it difficult to distribute programs that I've written, since it's an expensive program for others to have just for that.

So is there are an image to float module? I've looked, but can't find it.

Cheers,

Mark
Morph
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: Image processing

Post by Morph »

I don't know what data do you want to read from the image? There is Colour Detection, get Pixel, Motion Detect, Bitmap Size, Canny Edge Detect primitives..
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Re: Image processing

Post by markholtuk »

Ideally, I'd like a float array of (r,g,b) intensity values or failing that (h,s,b). No real need for pixel co-ordinates as long as the data remain as an array that can be manipulated mathematically and can be output as a new image. Note that I'm talking about static images (single and/or stacks) here, rather than video streams.
Morph
Posts: 53
Joined: Tue Jul 13, 2010 1:59 pm

Re: Image processing

Post by Morph »

It should be possible using Get Pixel to scan and write the colours to an array..
markholtuk
Posts: 8
Joined: Wed Mar 23, 2011 11:45 pm

Re: Image processing

Post by markholtuk »

OK, I'll have a look at that. Thanks very much for your help!
DSP
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Image processing

Post by DSP »

One of the issues with processing video is the shear amount of data to process, and usually any video processing needs to be low level and optimized to get the throughput. If you have a specific application, I would check out what functions 'OpenCV' http://opencv.willowgarage.com/wiki/Welcome has available as this is what FlowStone uses for it's image processing. Then maybe present a good case to have it implemented in FlowStone.
Post Reply