How should I maintain the color of Drawing?
Hi All,
I would like to get some suggestion from you. Currently, I have two problems.
1.) I have a live image from camera and I want to draw a rectangle every one second until to 9 rectangles.But, I don't know how to maintain all previous rectangle?
2.) If I use one image to save my drawing and overlay with image from camera. It will make system will be very slow. If I change illumination of camera, the color of rectangles should not be effected while doing overlay process.
This is my real application. Let machine to move a position and then find the object. When the object is found, system will draw a rectangle. I only want to do display same as current system.
Best regards
why not redraw them on every frame ? it's not expensive at all .
also, keeping an overlay img in memory should be fairly cheap.
Could you show a picture of how this should look like?
Like @berak said, store the drawed rectangles into a vector element, and redraw the rectangles at each frame, which isn't expensive at all :)
1.) I save all my drawing with "IplImage", but I am not sure whether it is same as img in memory. Then, I overlay two images pixels per pixels. It will slow down system performance. 2.) How should I upload a picture in this forum? I don't know how to do that. 3.) Can you give me some reference links to store all my drawing into a vector element? I am quite new with OpenCV. It's be better to get with low version of openCV.
This is the flow how "Commercial Image Library" does. a.) They save image from camera in their buffer. b.) They create a overlay buffer to store all drawing. c.) Finally, they will display together. So, they can draw any where. Display for drawing will not effect when the illumination is changed. Refresh process is also very first. I want to do same as that feature.