| immorphology.q | |
| Functions | |
| morph_filter | Generic prototype for ANY morphological filter in this module |
| imerode | Mathematical erosion computes for every pixel (i,j) the minimum over all pixels in the window centered at (i,j), according to the given mask. |
| imdilate | Mathematical dilation computes for every pixel (i,j) the maximum over all pixels in the window centered at (i,j), according to the given mask. |
| imopen | The morphological opening on an image is defined as an erosion followed by a dilation. |
| imclose | The morphological closing on an image is defined as an dilation followed by a erosion. |
Generic prototype for ANY morphological filter in this module
function y = morph_filter[T](x : cube[T], mask : mat[T], ctr : ivec2,
init : T, morph_op : [__device__ (T, T) -> T])| x | the input image |
| mask | the morphology mask (should be binary!) |
| ctr | the center of the mask |
| morph_op | the operation (e.g. minimum or maximum) |
| init | the value to be used when the mask is empty |
Mathematical erosion computes for every pixel (i,j) the minimum over all pixels in the window centered at (i,j), according to the given mask.
y = imerode(x : cube, mask : mat, ctr : ivec2)
| x | the input image |
| mask | the mask to use |
| ctr | the coordinates of the center of the mask (typically floor(size(mask)/2)) |
Mathematical dilation computes for every pixel (i,j) the maximum over all pixels in the window centered at (i,j), according to the given mask.
y = imdilate(x : cube, mask : mat, ctr : ivec2)
| x | the input image |
| mask | the mask to use |
| ctr | the coordinates of the center of the mask (typically floor(size(mask)/2)) |
The morphological opening on an image is defined as an erosion followed by a dilation. Opening can remove small bright intensities and connect small dark regions.
function y = imopen(x : cube, mask : mat, ctr : ivec2)
| x | the input image |
| mask | the mask to use |
| ctr | the coordinates of the center of the mask (typically floor(size(mask)/2)) |
The morphological closing on an image is defined as an dilation followed by a erosion. Opening can remove small dark intensities and connect small bright regions.
function y = imclose(x : cube, mask : mat, ctr : ivec2)
| x | the input image |
| mask | the mask to use |
| ctr | the coordinates of the center of the mask (typically floor(size(mask)/2)) |