LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

imaq mask on u 32

why the program with imaq masks error ?

 

error.PNG

0 Kudos
Message 1 of 6
(2,424 Views)

Can't tell much from a picture.  Attach the actual VI, and possibly include the VI that calls it (so we can understand any parameters that you may be using).

 

Bob Schor

0 Kudos
Message 2 of 6
(2,380 Views)

why the mask and the compare vi it cant display in output 

you can see the program and can bring me the solution, thankyu

0 Kudos
Message 3 of 6
(2,353 Views)

use imaq mask and imaq compare

with 2 input and 1 output with rgb32

0 Kudos
Message 4 of 6
(2,351 Views)

Grace,

 

     Thank you for attaching your code.  I am trying to figure out what you are trying to accomplish with this code.  It seems very incomplete and strange, and without some examples of the Images you are trying to process (and what seems like "wrong" LabVIEW code), I'm not sure how to help you.

 

     Here's what I see, along with some questions.

  • Most of this routine is inside a While loop with a Stop button.  The loop consists of reading the same files over and over, and doing the same processing within the loop.  When debugging routines that don't seem to work, simplify and remove unnecessary pieces (like the While loop).
  • You are reading two Images (presumably RGB, of unknown size) and are resampling them to 320x240.  It might be helpful to attach the Images to get an idea of what you are trying to do.  How big are the images?  Why are you resampling them?  I presume you know that resampling changes the images, raising the question how this affects the later processing steps.
  • You extract a 10x10 rectangle from the upper left corner and determine the RGB values, which you appear to simply pass to an Array Indicator, but otherwise do not use.  Are these data useful to you?
  • You pass the two images into a Case Statement that does more computation when Run is True.  Why is there a Case Statement?  The False case is "do nothing".  This Case Statement appears to be unneeded.  Remove it.
  •  Inside the Case, you have another Case controlled by an Enum that consists of a single Constant.  Again, this does nothing, so get rid of it.  Try to make the code as simple as possible when trying to get it to do whatever it is you want to do.
  • Which brings up an important point -- I have no idea, from looking at your code, what it is you are trying to accomplish.  Part of this is because I have no idea of the two Images you are using (you didn't attach them), and you didn't explain in a way I could understand.
  • Inside the redundant Case Statement, you do a Mask operation.  I've not tried Masking with color images, so I'm a little unclear what would happen (the Mask is described as an 8-bit pixel, but your Mask is an RBG (U32) quantity composed of 4 8-bit bytes).

LabVIEW Image Processing is somewhat specialized.  It helps (a lot) to have a couple of years of LabVIEW experience (not in Image Processing), plus a good understanding of how Images are represented and how IMAQ works.  Unfortunately, there seem to be few tutorials.  I learned with a colleague who was doing simple video acquisition and processing.

 

Bob Schor

 

 

0 Kudos
Message 5 of 6
(2,340 Views)

thankyou , i will try it

0 Kudos
Message 6 of 6
(2,328 Views)