02-10-2011 03:52 PM
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:
Checking the zoom three different ways: Get Image Scaled, Home-built interpolation, built-in zoom
02-11-2011 10:45 AM
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.
Blog for (mostly LabVIEW) programmers: Tips And Tricks