Jump to content
Sign in to follow this  
thinhare

reshaping bmp distorted

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
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.

Sign in to follow this  

×
×
  • Create New...

Important Information

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