Question: Giving a raw image, use the matlab functions: colon operator, cat, subplot to : 1. extract 4 quarter-resolution images from the image, by extracting every

Giving a raw image, use the matlab functions: colon operator, cat, subplot to :

1. extract 4 quarter-resolution images from the image, by extracting every other pixel e.g., if the raw image uses bggr, img(1:2:end, 1:2:end) would be the blue channel (how would the red component be extracted?)

2. create 4 RGB images, one per Bayer mosaic candidate; an RGB image can be created from 3 1-channel images using cat; hint: given a Bayer candidate, which subimage Represents red? (draw a 2x2 box)

3. show the 4 RGB images resulting from each potential Bayer mosaic, labeled by their mosaic 4-tuple (e.g., bggr), in a 2x2 grid; brighten each image by scaling by 5.

4. choose the best one

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!