Jump to content

I16 Image into U8 Image only lower byte


Recommended Posts

Dear Forum,

i get an image from a gige camera (12 bit packed) and Labview create an image buffer with IMAQ create to and I16. so far so good.

the next step, i have problems to codeded, i will need an U8 Image type  with the only lower byte from the I16 image type.

with the IMAQ cast it does work correctly. somthing with the shift operator. Have any other an idea or example who,

to get the lower byte from an I16 Image type.

need help to understand what do i wrong.

best regards

Alexander Hallmann

 

lowerbits_02.vi

Testbild_lowerbits.png

Link to comment

agreed, unclear. The simplest answer is that if you just want to play with the raw pixel values you can use imaq image to array and array to image. That way you can mess with the integers until you get the result you want and then figure out if there is an imaq function to do it fast.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.