From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI VideoMASTER and NI AudioMASTER

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ SSIM Doesn't Work for RGB (U32) Images

Greetings, Daniel;

 

No problem, it was my pleasure. Let me know if you do have any questions about the plane extraction idea.

 

Have a great day!

 

Cordially;

Simon P.

National Instruments
Applications Engineer
0 Kudos
Message 11 of 16
(8,372 Views)

So I went ahead and tried IMAQ ExtractColorPlanes.vi for my SSIM measurement.  This time I had no image type errors although it failed to detect the difference between 2 images that are different. I have posted the VI along with the front panel screenshots.  You will notice that the test image has a red square on one of the actor's face, I did this in microsoft paint.

 Block Diagram

 

Front Panel

 

0 Kudos
Message 12 of 16
(8,366 Views)

I also tried an even worse test image and I still get perfect scores...

 

The picture seen below is what was used as the test image. 

 

 

test.jpg

 

 

0 Kudos
Message 13 of 16
(8,363 Views)

Greetings, Daniel;

 

I believe that the reason that the code is not able to find out the difference is that the IMAQ Create VIs repeat names. Since the images are effectively pointers, giving them the same name often leads to trouble. I modified the names for the IMAQ Create input strings and got the following result:

Comparison_Working.png

 

The change was the following: 

 

Comparison_Working_2.png

 

If you are curious about the requirements for the IMAQ Create, more information may be found here:

http://zone.ni.com/reference/en-XX/help/370281P-01/imaqvision/imaq_create/

 

Let me know if that helps.

 

 

National Instruments
Applications Engineer
Message 14 of 16
(8,362 Views)

YES YOU ARE CORRECT! Thanks!!

0 Kudos
Message 15 of 16
(8,355 Views)

Greetings, Daniel;

 

No problem, it was my pleasure.

 

Cordially;

Simon P.

National Instruments
Applications Engineer
0 Kudos
Message 16 of 16
(8,353 Views)