LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Resizing a Picture question

Hi every one,

just curious to know whether it's possible to resize a picture whish was
open with Read Jpg file
I've used Write jpg file and used the input "quality" which doesn't really
resize the picture!

Thanks in advance for youry help

Regards

Gérard


--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini
remove -move to reply personally
0 Kudos
Message 1 of 8
(3,323 Views)
Yes, I've just done this. You can set the origin and the size using property nodes
J. Brohan www.TradersMicro.com
0 Kudos
Message 2 of 8
(3,323 Views)
Thank you for your reply. However, I can't solve my problem since the "Write
jpeg.vi" has no property node
I use LV 7.1

Thank again

Gérard


--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini/Main_Photos.html
remove -move to reply personally
"jbrohan" wrote in message
news:5065000000050000003FCE0100-1079395200000@exchange.ni.com...
Yes, I've just done this. You can set the origin and the size using
property nodes
J. Brohan www.TradersMicro.com
0 Kudos
Message 3 of 8
(3,323 Views)
It's the picture that has the property node. Right click on the picture's terminal and create / property node and choose the size and origin properties.
Yours Sincerely
John
0 Kudos
Message 4 of 8
(3,323 Views)
Hi Gérard,

LabVIEW doesn�t ship with a VI that makes you resize your image, but you can create a VI that can do it yourself by deleting unwanted pixels in the 2-D pixmap. Use the "Unflatten Pixmap.vi" to get the 2-D pixmap of your image.

For another solution, your question has previously been discussed in this thread.

I hope you find this helpful.

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 5 of 8
(3,323 Views)
Gérard,

I couldn�t help myself, so I created a small example that reduces the size of in image by a given factor (see the attached ResizeImage.vi).

Have fun!

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 6 of 8
(3,323 Views)
I get it! thank you John. But the finall step would be to write this new
resized file?

Philip C. replied that LV has no vi to resize picture and then re-write
this files and gave me some hints to do so with "Unflatten Pixmap.vi"

I'll have a try that way.

Anyway, Thank you all for your nice replies

Best Regards

Gérard



--
Gérard Férini
Switzerland
http://home.tiscalinet.ch/gferini
remove -move to reply personally
"jbrohan" wrote in message
news:506500000005000000FFCE0100-1079395200000@exchange.ni.com...
It's the picture that has the property node. Right click on the
picture's terminal and create / property node and choose the size and
origin properties.
Yours Sincerely
John
0 Kudos
Message 7 of 8
(3,323 Views)
For high quality image resize, take a look these webpages:

http://www.geocities.com/gzou999/resize.htm
http://www.geocities.com/gzou999/imgtool.htm
George Zou
0 Kudos
Message 8 of 8
(3,323 Views)