01-24-2020 04:13 AM
I have read a jpg picture by LabVIEW and got 2D array data of it .
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 .
Solved! Go to Solution.
01-24-2020 07:23 AM
@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?
02-12-2020 08:47 AM
02-12-2020 12:13 PM
@alii001 wrote:
I gave up, instead I use PS
Photoshop?
how about:
https://zone.ni.com/reference/en-XX/help/371361R-01/gmath/interpolate_2d/
https://forums.ni.com/t5/LabVIEW/interpolating-a-2D-array/td-p/2962065
of course, this .vi is my favorite in terms of bilinear interpolation: