Rimmergogo Posted November 8, 2007 Report Share Posted November 8, 2007 Hi, I have made a program that transforms the R,G,B values of an image into H,S and I arrays. I use a 3D surface graph to visualize the hue is a 3D manner. The problem is: When a picture has a resolution of about 320 X 240 the 3D surface graph is resonable quick but when the image is too large the 3D surface graph becomes unreasenable slow. I managed to downsize the image resolution. In combination with a zoom function I'm able to see all the pixel data if necessary. But then again when the images become too large (>1280*1024) the methode it self becomes unreasenable slow. How can I down size the image data. Is there mayby a dll file with an example available? Andries PS. I use Labview 7.0 Quote Link to comment
Justin Goeres Posted November 8, 2007 Report Share Posted November 8, 2007 QUOTE(Rimmergogo @ Nov 7 2007, 07:52 AM) How can I down size the image data. Is there mayby a dll file with an example available? I'm not totally sure I understand exactly what you're doing, so forgive me if I'm way off-base. If you were using LV8.2 or greater, I would suggest my LVOOP Imagemagick library . But even though you're on LV7, you can still use ImageMagick directly to do what you want. Check out the convert utility, especially the density and/or resample operators. What you can do is build your command-line string in LabVIEW, execute it with the System Exec.vi function, and then load the resulting output file as a PNG/TIFF/whatever. ImageMagick usually involves a bit of trial and error, but it's a terrifically powerful toolkit. Finally, if you're messing around trying to see if your operations are taking effect, you might find the identify utility will save you from having to actually open & display your output files. Quote Link to comment
eaolson Posted November 8, 2007 Report Share Posted November 8, 2007 QUOTE(Rimmergogo @ Nov 7 2007, 08:52 AM) When a picture has a resolution of about 320 X 240 the 3D surface graph is resonable quick but when the image is too large the 3D surface graph becomes unreasenable slow.I managed to downsize the image resolution. In combination with a zoom function I'm able to see all the pixel data if necessary. But then again when the images become too large (>1280*1024) the methode it self becomes unreasenable slow. I'm not entirely clear on what you're doing with regards to 2D and 3D images, but if you have Vision, there's IMAQ Resample to change the size of an image, with different interpolation methods available. Also for a 2D image, a quick and dirty way to resize it might be to throw away every other pixel before displaying it. Inelegant, but fast. Quote Link to comment
Yair Posted November 9, 2007 Report Share Posted November 9, 2007 If you want, I posted a pure G version once here. It essentially does what eaolson decribed, so the quality is far from great, but it works for some things. If you want another, search the OpenG site for a utility called Bird's Eye View, where you can find a VI which does bi-cubic interpolation in pure G. Quote Link to comment
Rimmergogo Posted November 13, 2007 Author Report Share Posted November 13, 2007 Thanks guys, I'm I will find a solution now from your inputs. Andries Quote Link to comment
Norm Kirchner Posted November 13, 2007 Report Share Posted November 13, 2007 QUOTE(Justin Goeres @ Nov 7 2007, 10:12 AM) I'm not totally sure I understand exactly what you're doing, so forgive me if I'm way off-base.If you were using LV8.2 or greater, I would suggest my LVOOP Imagemagick library . But even though you're on LV7, you can still use ImageMagick directly to do what you want. Check out the convert utility, especially the density and/or resample operators. What you can do is build your command-line string in LabVIEW, execute it with the System Exec.vi function, and then load the resulting output file as a PNG/TIFF/whatever. ImageMagick usually involves a bit of trial and error, but it's a terrifically powerful toolkit. Finally, if you're messing around trying to see if your operations are taking effect, you might find the identify utility will save you from having to actually open & display your output files. Justin, could you post a quick video of your Imagemagic library in work (JingProject.com) I've once tried to install, but can't recall what it was, but there was a big hurdle involved in getting it working. I would just love to see your example of the power of it in action. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.