Page 1 of 2
Image processing
Posted: Mon Apr 04, 2011 5:54 pm
by markholtuk
Will it be possible to connect images to the code component and/or other modules to do image processing/analysis?
Thanks,
Mark
Re: Image processing
Posted: Wed Apr 06, 2011 8:35 am
by markholtuk
Is the question too difficult or vague to understand?
Re: Image processing
Posted: Fri Apr 08, 2011 2:24 pm
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.
Re: Image processing
Posted: Fri Apr 08, 2011 3:15 pm
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.
Re: Image processing
Posted: Mon Apr 11, 2011 12:43 pm
by markholtuk
Thanks for the reply morph. Thought I was talking to myself for a while there

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
Re: Image processing
Posted: Mon Apr 11, 2011 1:54 pm
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..
Re: Image processing
Posted: Mon Apr 11, 2011 1:59 pm
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.
Re: Image processing
Posted: Mon Apr 11, 2011 2:08 pm
by Morph
It should be possible using Get Pixel to scan and write the colours to an array..
Re: Image processing
Posted: Mon Apr 11, 2011 2:13 pm
by markholtuk
OK, I'll have a look at that. Thanks very much for your help!
Re: Image processing
Posted: Mon Apr 11, 2011 3:01 pm
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.