Image analysis/filtering problem - remove "artifacts", known pattern, locally 'flat'

13 次查看(过去 30 天)
Hi,
I have been trying to come up with a better solution for the quantitative analysis of electronic properties of wafers (photoluminescense to be precise). The kind of measurement doesn't play a role here. What's important to know, there is a geometry on the structures with a well known geometry and I would like to extract the pixel value of each field. In case of the example below, there are 7*7 = 49 square fields, besides the corners, they're all squares. Within each of those 49 fields the pixel values should be constant. Artifacts however, caused by defects in the wafer like dirt on the surface or scratches while handling, impair the material quality, thus lower the pixel values locally. The imaging artifacts are always of LOWER signal, they can't generate a higher signal. These defects influence their surrounding depending on their parameters, so there is a certain "unsharpness" to the information. This diffusion is not a constant however so at this point it makes no sense to try to look for an inverse point spread function or something.
What I'm looking for now is a better way to extract the "true pixel value" of each field, IGNORING the artifacts. I'm certain there should be a workflow or algorithm taking into account the boundary conditions at hand, which is.
  1. the parameters of the fields are independent from one another so: With artifact-free images one can expect a constant pixel value in each field, the image should be locally flat, see example. That is ignoring the intersection of one field to the next, one would ignore the outermost 10 -20px anyways
  2. The artifacts have no geometrical correlation to the fields meaning, they can stretch from one to the next or are just locally confined. Thus: Any trend of the signal that changes across fields can with 100% certainty considered an artifact and should therefore be taken into account.
  3. Artifacts can only cause a decrease in intensity, never an increase!
combined these 'boundary conditions' should be helpful in identifying what the actual value are.
A binary mask or even a pixel weighting based on confidence that the signal is not-impaired is what I'm looking for. Maybe there is also a way to make it an optimization problem, trying to simulate the local values based on the known pattern with locally unknown values. I'd really appreciate any input on the issue!
regards
Arnold
So far I've tried:
  • frequency filtering --> no good since it doesn't 'ignore' bad areas. If at all, it is only effective against either very small dot-like defects or global gradients like a vignette. But those aren't the problem.
  • Apply gradient filter then identify areas of lower pixel value surrounded by strong gradients and mask those out. This kind of works when looking at a singular field, however, if the entire field or a large portion of it which spans all the way to the perimeter of the field is affected the method fails.
  • Defining defect sizes by hand... basically a cascade of local thresholding, image segmentation and masking. Utterly hard to get a general use case out of it and the results simply aren't very promising
  • ImageJ - Subtract Background. One of the subjectively best methods I've found, however, this also attenuates the values to a certain extent which is NOT WANTED. Does anyone know this algorithm that ImageJ uses? At the 'right size', the values of the fields are being ignored yet the artifacts get identified. The input parameter is a 'rolling ball radius'. The useful output is the background and the background is obviously bright since we postulate that the brighter values are the more correct ones. First, I don't actually know what it does but since imageJ is open souce this should be doable. Second though, this still doesn't take into consideration the geometry information which I think should give a great advantage. Strctures that span across fields should be handled better in a final version, see below
example of raw image with 'artifacts' on top of square structures:
marked areas that are 'subjectivelly' giving the right values:
how I currently filter using local gradients
ImageJ > subtract background >rolling ball 50px + light background + create background
ImageJ subtract background rolling ball --> actually correct
  1 个评论
arnold
arnold 2019-2-10
ok, I have figured out, that I can achieve pretty much the same as the ImageJ rolling ball background subtraction by using
img = img + imbothat(img, strel('ball', 50,50))
However, I would still appreciate an idea as to how one can utilize the three boundary conditions mentioned above.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2019-2-10
编辑:Image Analyst 2019-2-10
  1. You can use a template and take the mode of each tile, as long as the mode is more than the mean, to create a background image with "perfect" image.
  2. Will be handled once you've done #1.
  3. Subtract template from original image and look for only values that are negative.
  2 个评论
arnold
arnold 2019-2-10
编辑:arnold 2019-2-10
creating a template makes sense, but what intensities would the template contain and how to compare or optimize it then?
Maybe I should have stated more clearly, that the intensity in each field is unknown... that's why we measure it in the first place. The experiments are set up so that we do know each field should be 'flat' but the overall value is the experimental result.
So we create many wafers with different parameters in each location.... here is a bunch of results as example.
Therefore all I really know about the pixel intensitiy in each field is that it is supposed to be locally flat and that defects in stripes or blobs stretching several fields wide can occur which are hard to filter out locally. Small defects are easily filtered.
Image Analyst
Image Analyst 2019-2-10
The template is defines as a binary mask that you can then label with bwlabel() to identify distinct regions. It merely defines spatially connected regions, not the intensity within them. The best guess as to what's a "normal" flat region inside each region might be the mode of the region. Alternatively you can look at the MSER algorithm.

请先登录,再进行评论。

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by