From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the 2D array's size of a picture

Solved!
Go to solution

I have read a jpg picture by LabVIEW and got 2D array data of it .1.png

Now ,I need to change the size(the real pixel size , not the size shown in front pannel).

 

I have two method, one is to use array modules , one is to change the size of the 2D array, the other method is to resample the picture when reading it . But , each method is difficult for me ,I can not find the blocks from Labview back panel's modules. 

 

I had also seen the page https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Ko3SAE&l=zh-CN,but nothing is done, because there are so many blocks ,(灬ꈍ ꈍ灬) .

 

 

any suggestion will be appreciate .

0 Kudos
Message 1 of 4
(2,473 Views)

@alii001 wrote:

 

I have two method, one is to use array modules , one is to change the size of the 2D array, the other method is to resample the picture when reading it . But , each method is difficult for me ,I can not find the blocks from Labview back panel's modules.

what have you tried?

https://en.wikipedia.org/wiki/Image_scaling

e.g. leave out every third row (shrinking)  or repeat every third row (expanding) of your input image?

 

 

0 Kudos
Message 2 of 4
(2,437 Views)

I gave up, instead I use PS

0 Kudos
Message 3 of 4
(1,893 Views)
Solution
Accepted by topic author alii001
0 Kudos
Message 4 of 4
(1,881 Views)