LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to filter noise images?

Hallo,

 

I would like to filter noise images. Here is one of my images and the result after filtering the image with the Vision Assistant. I would like to filter the separated cells as much as possible but the noise generated by the fluid flow as a background could not be filtered. I would like to delete the the lines of the fluid flow from the image. Could you please assist me or advise me? Thank you!

0 Kudos
Message 1 of 7
(178 Views)

Since you are using modules, the machine vision forum might be more appropriate for your question. We also cannot tell what kind of settings you are using in the vision assistant. Typically a screenshot of the panel does not really tell us much.

 

Still, a greyscale image is just 2D data and it is possible To use plain LabVIEW tools to do all processing. Obviously, simple thresholding is not suitable but there are other obvious distinction between objects and background. In general, the more we know about the objects, the better the detection. Are the objects always the same size? Is the background always horizontally banded?  Do you really need an image output or would just e.g. counting the objects be sufficient?

Message 2 of 7
(147 Views)

Here's a quick attempt subtracting a least absolute residual polynomial fit from each row, followed by thresholding at 30.

 

altenbach_0-1754577417750.png

 

Message 3 of 7
(132 Views)

Subtracting a background obtained by convoluting with a suitable horizontal kernel followed by another filter to remove single spikes seems to work quite well. You still need deal with edge effect on both sides and maybe tweak the two kernels, but overall it works quite well and is fast.

 

altenbach_0-1754586281988.png

 

altenbach_1-1754586468025.png

 

 

Message 4 of 7
(106 Views)

Thank you for your assistance! Is it necessary to ask the same question in the machine vision forum? The spherical objects are biological cells. In a microfluidic channel I put a suspension with cells and I make 7 images with 7 different microfluidic pressures. I've attached the first and the last image. At the beginning the cells are almost spherical but during the increase of the pressure they become more elliptical. The background is always horizontally banded. I need an image output in fact.

 

Download All
0 Kudos
Message 5 of 7
(78 Views)

So this seems to work quite well on all your pictures. See if the code makes sense. A few things could be improved and tuned, of course.

The default values seem to work quite well.

 

altenbach_0-1754661528548.png

 

altenbach_1-1754661761346.png

 

Seems pretty fast...

0 Kudos
Message 6 of 7
(42 Views)
  • Thank you very much for your assistance! The solution is working very good! Could you please explain why do you use Sine Pattern VI? What is the purpose regarding image processing? 
0 Kudos
Message 7 of 7
(7 Views)