Is it okay to interpolate between overlapping areas obtained using a sliding window to make a colormap?

2 visualizaciones (últimos 30 días)
I am using a 50x50 pixel sliding window in some Image Analysis Software which moves left to right every pixel so that it covers a whole binary image which is about 2000x2000 pixels. In the window, the ratio value of black to white pixels is calculated. I have then been uploading the values into matlab as xyz coordinates with x and y being the centre of each window square and z as the ratio value and interpolating between them to create a meshgrid colormap to help visualise the image.
This is outside the realms of my expertise but I was wondering is it okay to interpolate between these values in matlab as they are not really discrete points but overlapping areas. The colormaps come out looking really good and seem to be a very good representation of the original binary image but it's more the theory that I am having trouble with and I am not having much luck searching.
Is it okay to interpolate overlapping sliding window values in this way using matlab's standard linear interpolation mesh and does anyone have any links to any helpful literature or resources regarding this?
Any help would be greatly appreciated!

Respuesta aceptada

Image Analyst
Image Analyst el 3 de Jul. de 2020
The value at that point is the ratio within the window when the window is located at that point. I don't see any problem with that. Why should it matter if windows overlap as they slide along? If you really don't want overlapping windows for some reason, then you can use blockproc(), and I'm attaching some demos on how it can be used in a variety of ways. Normally blockproc() moves along in "jumps" rather than slide along a pixel at a time, though you can have an overlap of whatever you want if you decide to use it that way.

Más respuestas (0)

Categorías

Más información sobre Blue en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by