MATLAB: Can I crop detected region for further analysis? For example, I would be detecting smoke, can it be automatically cropped

image analysisimage processingImage Processing Toolboxsmoke

Also can images obtained from background subtraction be returned to their original color?

Best Answer

Yes. To crop, call imcrop().
To restore an image after subtracting the background image from it, simply add the background back in.
Related Question