LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save image as it show on display without changing the scale

I do not think there is something to do with the dispose function. I removed it from the program, and it still does not solve the problem. Probably dkfire is right, the Get image method does not work for IMAQ images. Thanks for your kind suggestions though.

0 Kudos
Message 11 of 33
(1,335 Views)

It's not that nothing is saved. The image data from the display is saved, but just the brightness is auto-scaled, so it too dim to see any features in image. so what I need is to save the image with a fix colorscale or as it is shown on display. Cheers!

0 Kudos
Message 12 of 33
(1,334 Views)

@Raul6128 wrote:

It's not that nothing is saved. The image data from the display is saved, but just the brightness is auto-scaled, so it too dim to see any features in image. so what I need is to save the image with a fix colorscale or as it is shown on display. Cheers!


Something seems wrong with the method you were trying to use.

 

Try...

 

Right-click the image indicator and select "Create reference"

Right-click the reference node and choose "Create >>> Method for Imaq.... >>> Get Image.

 

Then using the error wires use the Get Image method you created to get the image AFTER it is acquired and BEFORE the image is disposed.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 13 of 33
(1,329 Views)

Thanks! but as you can see, there is no method available for IMAQImage class.Picture4.png

0 Kudos
Message 14 of 33
(1,326 Views)

Have you tried a control reference, like I suggested?

 

I don't know IMAQ, so I can't help you there, but my first suggestion works for everything else.

 

You can even get an image for a BOOLEAN control.

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


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 15 of 33
(1,325 Views)

Is there a reason that you won't wire it up the way my diagram showed?

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


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 16 of 33
(1,321 Views)

Certainly no! Here is a saved image using your method, it kind works, but the frame of the display is also included in the image, which is not good from my prospective. I need to process the image later in Matlab.test3.png

0 Kudos
Message 17 of 33
(1,318 Views)

OK, then use IMAGE SUBSET to specify a rectangle that is the area you want.

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


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 18 of 33
(1,316 Views)

@Raul6128 wrote:

Thanks! but as you can see, there is no method available for IMAQImage class.Picture4.png


Look at what I wrote again.

 

Create the reference for the indicator NOT the Imaq wire.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 19 of 33
(1,313 Views)

Thanks! but if create a reference for the indicator, the frame of the indicator will also be included in the image, see below.test3.png

0 Kudos
Message 20 of 33
(1,309 Views)