Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need help on Matlab image processing!

Status
Not open for further replies.

Ejaz

Electrical
Dec 4, 2001
26
I'm capturing raw images from an experimental CMOS digital camera. However, this camera doesn't have RGB masks on the CMOS. Instead, the CMOS is monochrome. An instrument with camera lens is fitted infront of the CMOS that has four apertures so that the input image on the CMOS screen is divided into four equal parts (upper left = UL, upper right = UR, lower left = LL, lower right = LR). I'm using 3 of the 4 apertures (UR, LL, LR) to place 3 optical filters like RGB (not exactly RGB). So the captured grayscale image on the computer screen is divided in 4 parts. One part is unused. The other three parts represent the images corresponding to the individual filters. The CMOS sensor has a bit depth of 12bits/pixel but the camera and the capture board takes it as 16bits/pixel. The captured raw image is saved as uncompressed 16 bits/pixel TIFF image with Prefix 0 bits. Now I would like to do the followings with the image using Matlab:

1) subtract the extra bits from the 16 bit image so that it becomes 12 bit image.

2) make a composite image using the UR, LL & LR images.

Could anyone plz advise me on that!

Thanks in advance!
 
Replies continue below

Recommended for you

1) subtract the extra bits from the 16 bit image so that it becomes 12 bit image.

You need division. If you placed your 12 bits LSB jsutified inthe 16 bit word you just divide by 2 6( 16 - 12 ).

2) make a composite image using the UR, LL & LR images.
Form a mask matrix to form each submatrix. You will need to place the data into the correct frame in whatever color format you use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor