thinhare Posted February 14, 2009 Report Share Posted February 14, 2009 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? Quote Link to comment
nicolasB Posted February 15, 2009 Report Share Posted February 15, 2009 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 Quote Link to comment
thinhare Posted February 15, 2009 Author Report Share Posted February 15, 2009 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? Quote Link to comment
nicolasB Posted February 15, 2009 Report Share Posted February 15, 2009 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.