LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why misalignment using GET SCALED IMAGE?

You are missing some subVIs in the demo file, but I was able to roll my own and it appears that the scaling is being done with nearest neighbor interpolation.  I was able to finely tune the scaling and see quite crazy results (you seem to have hit a relative "sweet spot") other factors are quite worse.  My own scaling VI uses bilinear interpolation which gives a much better result with a slight hit in speed.  My suggestion is to use the zoom factor of the picture control.

 

The Front Panel looks like this on my machine:

 

ZoomDemo2.PNG

 

Checking the zoom three different ways:  Get Image Scaled, Home-built interpolation, built-in zoom

 

ZoomDemo.PNG

0 Kudos
Message 11 of 12
(243 Views)

You are missing some subVIs in the demo file

 

Hmmm.  I don't see which ones - everything in my copy is in the BugDemo folder, or in VI.lib.

 

My suggestion is to use the zoom factor of the picture control.

 

Yeah, that does look better.  It's just a print-preview, but for critical stuff, the SCALED IMAGE thing is not to be trusted.

 

Thanks for your insights.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 12 of 12
(233 Views)