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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Image processing with labview

Hello. I would like to make the image analysis vi for uni project. I mostly finished but still did not get correct solution.

 

In the vi, the image(jpg) is loaded and divided into RGB components then they are modified by the convolution method and scaling method. The operation consists of dividing the image into square areas of n by pixels and then replacing them with single pixels, with the color determined as minimum, maximumor arithmetic mean of values of all pixels in the area.

 

I made vi but it still would not show the modified picture. I think the array operation is not correct.

 

0 Kudos
Message 1 of 5
(828 Views)

Can you attach the picture?

 

( I don't see any convolution anywhere. You are not dividing anything into square areas either....)

0 Kudos
Message 2 of 5
(796 Views)

I would use enums instead of rings. Makes the case structure easier to read.

 

See if this can give you some ideas....

 

altenbach_0-1684632756270.png

 

0 Kudos
Message 3 of 5
(782 Views)

Thank you very much!!

I was stuck at dividing pixels actually and forgot to add enums...

I will refer to it.

 

0 Kudos
Message 4 of 5
(740 Views)

Currently we decimate the image (and also assume that the image size is divisible by the kernel size).

 

Of course you can equally well keep the image size the same (after deciding what do do at the edges) and replace each pixel with a value derived from a small area centered at each pixel. In this case, the averaging can also be done using 2D convolution with a suitable kernel. Instead of a flat kernel, you could even use a shaped kernel, e.g. a truncated 2D gaussian with a certain width.

 

Also, if the subset should always be square, you only need one input for it.

0 Kudos
Message 5 of 5
(721 Views)