LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ save file and IMAQ divide doesn't work

Hi,

I am currently working on an image processing project and i'm having some problems using IMAQ write file 2 and IMAQ divide VI:
1. I use IMAQ extract to extract a part of the original image and i designed a "save button" to automatically save the extracted part in the same directory with the original one, its name is the same as the original + "_suspect". It seems like my IMAQwritefile 2 can't overwrite the file since window keeps on saying that the created BMP file is empty

2. I use IMAQ divide to divide each of the image pixel by the "average" value (Optical Density), it worked fine since each element of the 2D array is divided; however, when i display the divided image from the IMAQ divide VI, it is the same as the original one ??, and the image displayed from ArraytoImage VI is quite different. What's the problem?

3. How can i export my VI to a GUI program? 

Thank you!!!

0 Kudos
Message 1 of 5
(3,310 Views)

Hello, anyone? 😞

0 Kudos
Message 2 of 5
(3,260 Views)

Some suggestions:

  • Get rid of the Frame Sequence and start using Error Lines to connect your functions.  DataFlow pretty much makes the Frame Sequence unnecessary except in unusual circumstances (often having to do with timing functions).
  • I don't understand why you change from Image to Array and then back to Image.
  • Does Extracted Image resemble Optical Density Extracted Image?
  • What happens if you wire 10.0 (a constant) into the Divide function?  You'd expect the OD Image to be a tenth the intensity of the original.  Is it?
  • Having the Error Line wired (for example, in the IMAQ Write File 2 function) might be revealing.
  • Clean up your code, simplify it a bit, and try again.

If you still are having problems, attach your "improved" VI and also a sample Image for us to use.

 

I don't understand what you mean by "export my VI to a GUI program".  What, exactly, do you want to do?

 

Bob Schor

0 Kudos
Message 3 of 5
(3,249 Views)

Hi Bob,

_ Yes, those two images resemble each other, that's what i dont understand since the new pixel grayscale value is much smaller than the old ones and, i use arraytoImage just to check whether the "new" image is different from the old one.

_ Connecting the error lines helped, thank you!!!

_ Here's my new VI and suspect image, optional rectangal is (0,1344,928,2496), the original one is too large, i cant load it.

??? My saved image and the one displayed in labview are different ?? The saved one seems to be a bit blur. 

_ Nevermind with the GUI, i found the solution, thank you 😄 

Download All
0 Kudos
Message 4 of 5
(3,244 Views)

Here's the link to the original image, it's too large to be attached

0 Kudos
Message 5 of 5
(3,240 Views)