Matlab AVI help
What i have is a grayscale video coming in, a windowed part getting manipulated, drawing a box on the 'figure' outlining the windowed area, then saving it to an avi.
Its the last part thats killing me, I'm not able to export directly to avi etc due to lack of memory remaining from the initial video matrix. So what I am doing so far is outputting a 16bit grayscale image of each frame, then at the end reading this back in using matlabs built in's : imread ( which is perserving the 16bit) and getframe( which is downconverting to 8 bit) and addframe.
2 issues
1: since im superimposing the square on the picture in the figure, i lose the square in the video, not a hug deal since im guessing i just need to go in to those pixels and manually change them to black, but im pointing this out incase theirs an easier way of doing this. i know in simulink this would be a single box but am trying to stay away from that.
2: i need to keep this image 16 bit, since the focus is on image noise, i cant lose 8 bits of lsb's and get blurring before the video starts.
This doesn't have to stay in avi format, but from what I've read avi does support 16 bit, i just need to find another way placing the image into the frame instead of the getframe command.
Any help or direction would be good.
EDIT: I went ahead with some for loops to draw the rectangle inside the image, still cant find a way to preserve the 16 bit .png grayscale image when converting to avi. Help please
, PrestonEE