Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever there is empty space the image simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around the edges of objects.

So I need to supply a binary mask to the blur. Masked pixels should not only remain unchanged, but should also be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever there is only empty space the image simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around the edges of objects.objects, since all freestanding objects will be surrounded by zeroes.

So I need to supply a binary mask to the blur. Masked pixels should not only remain unchanged, but should also be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever there is only empty space the image laser was not reflected, the map simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around the these missing values, and around all edges and holes of objects, since all freestanding objects will be surrounded by zeroes.objects.

So I need to supply a binary mask to the blur. Masked pixels should not only remain unchanged, but should also be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever the laser was not reflected, the map simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around these missing values, and around all edges and holes of objects.

So I need to supply a binary mask to the blur. Masked pixels should not only remain unchanged, but should also be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever the laser was not reflected, the map simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around these missing values, and around all edges and holes of objects.

So I need to supply a binary mask to the blur. Masked pixels should also be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?

Smoothing with a mask

Is there a way to apply a blur or median smoothing filter to an image, while supplying a mask of pixels that should be ignored?

I have a height map from a laser-scanner which I want to smooth. The map is not continuous; wherever the laser was not reflected, the map simply contains no height data.

If I arbitrarily set the height for missing values to zero (or any other value) and then blur the image, this will introduce a lot of error around these missing values, and around all edges and holes of objects.

So I need to supply a binary mask to the blur. Masked pixels should be ignored when calculating the new blur or median value of neighbor pixels.

How can I accomplish this?