From: Peter Bone on
I'm trying to plot some objects using the patch function to create synthetic images from which I can test an image processing algorithm. To run the image processing algorithm on the plotted image I need it to be in the form of a raster array with the correct dimensions (640x480). I know I can use getframe to capture the plot but this is not ideal. I'm having difficulty getting the right size image and if other windows are on top of the plot, it will capture them too. Is there a better way of doing this?
From: Peter Bone on
I just found a very useful function in the File Exchange called bitmapplot which solved my problem.