Jump to content

reshaping bmp distorted


Recommended Posts

Posted

Hi, there,

I tried to read a bitmap image, then convert it to a 2D array using 'array reshape', but the resulted image was distorted.

To show that, I convert the 2D array back to picture.

Any ideas?

Posted

QUOTE (nicolasB @ Feb 14 2009, 09:18 AM)

LabView uses the padded width wich is 276 in your example.

Why don't you use the "unflatten pixmap.vi" to obtain a 2D array?

regards,

Nicolas

Nicolas-

Thanks. That works.

Can you elaborate on "padded width"? What kind of machenism is that?

Posted

QUOTE (thinhare @ Feb 14 2009, 11:10 AM)

Nicolas-

Thanks. That works.

Can you elaborate on "padded width"? What kind of machenism is that?

this has smoething to do with a 4 Byte alignment, but I'm not confident with the details.

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.