×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need help on Matlab image processing!

Need help on Matlab image processing!

Need help on Matlab image processing!

(OP)
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!   

RE: Need help on Matlab image processing!

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.

RE: Need help on Matlab image processing!

You can see http://www-ise.stanford.edu/~tingchen/algoimp.htm for some hints on how Bayer filtered images are composited.

One thing that you've not stated is whether the colors are correctly weighted for true grayscale images.

TTFN



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources