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 8524007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:34:12+00:00 2026-06-11T07:34:12+00:00

I have rgb raw data, which is 8 bit/channel, i need to convert it

  • 0

I have rgb raw data, which is 8 bit/channel, i need to convert it to 16 bit /channel, any native framework can do so, thanks.

so input is image width, height, rawdata, any suggestion?

  • 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-06-11T07:34:13+00:00Added an answer on June 11, 2026 at 7:34 am

    If you just want to convert 8bpc raw image into 16bpc raw image (without any special color processing and filtering) – you don’t need any special framework. You can do it by youself by conbverting pixel by pixel… In case of unsigned short 16 bit raw conversion will looks like:

    size_t ent_cnt = width*height*channel_count;
    unsigned short *dst = new unsigned short[ent_cnt];
    unsigned short *dst_ptr = dst;
    unsigned char *src_ptr = src;
    while (ent_cnt --)
        *dst_ptr++ = (unsigned short)(*src_ptr++) << 8;
    return dst;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a raw image buffer in the RGB format. I need to draw
I have RGB values that I need to convert into CMYK values. I'm using
I have yet to find an algorithm/implementation that can convert rgb(0, 96, 255) to
You have 2000 raw images, 52x52 pixels, RGB 24 bits, that correspond to the
I have an int* of rgb data,width, height, and scanlinestride where i would like
I have an array of integers which represent a RGB image and would like
I have an RGB bufferedImage bImg . I want to convert bImg to gray
If I have an RGB image and a binary mask (1 channel), and I
I have an RGB hex code like #ffffff as NSString and want to convert
I am using FreeMat , and I have an RGB picture which is a

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.