Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7680303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:05:03+00:00 2026-05-31T18:05:03+00:00

I have tif image in 16 bit format. Now I want to convert this

  • 0

I have tif image in 16 bit format.
Now I want to convert this data set to an 8 bit rgb image for export as jpg.

If I use

RGB8 = im2uint8(imageData);

then I have a matrix with only 255 values, which is wrong since the histogramm has only values around 0 to 16000 with the maximum at 700 (max value of 16 bit is about 65500)

Also I want to adjust the gamma level to 0.45, which means that I do not want a linear mapping of values to brighness in each color.

How would I do that with matlab?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T18:05:04+00:00Added an answer on May 31, 2026 at 6:05 pm

    I solved it now with the following code:

    % reads 16 bit tif image
    imageRGB16 = imread(importName);
    % convert to 14 bit 
    imageRGB14 = imageRGB16 * 4;
    % apply gamma correction
    imageRGBGamma = imadjust(imageRGB14,[],[], 0.45);
    % convert to 8 bit
    imageRGB8 = im2uint8(imageRGBGamma);
    % imshow(imageRGB8);
    % export to jpg
    imwrite(imageRGB8,exportImportName,'jpg', 'Quality', 90)
    

    The resulting images have the same colors and brightness as he original camera images viewed with a special software which is what I wanted.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to convert a image into PNG format, the data I have is
i have a text like this .... ======== 1079.tif Image Description : Vexcel-UCD-Level-3 ------------------
I have save a image in a matrix like this: image1=imread('abcn.tif'); nfilas= tamanio(1); ncols=
I want to convert TIF to an image type that is viewable in a
I have a large image tif format and two small images. What I wanted
I want to get existing OCR data in .tif files using Java. This OCR
This is my image uploading page. what i want is lil bit edition. I
I have a directory that contains jpg,tif,pdf,doc and xls. The client DB conly contains
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have this function to store the bmp image in a desired location as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.