manpagez: man pages & more
man MPSImageErode(3)
Home | html | info | man
MPSImageErode(3)       MetalPerformanceShaders.framework      MPSImageErode(3)




NAME

       MPSImageErode -


SYNOPSIS

       #import <MPSImageMorphology.h>

       Inherits MPSImageDilate.

   Additional Inherited Members

Detailed Description

       The MPSImageErode filter finds the minimum pixel value in a rectangular
       region centered around each pixel in the source image. It is like the
       MPSImageAreaMin, except that the intensity at each position is
       calculated relative to a different value before determining which is
       the maximum pixel value, allowing for shaped, non-rectangular
       morphological probes.

       for each pixel in the filter window:
           value =  pixel[filterY][filterX] + filter[filterY*filter_width+filterX]
           if( value < bestValue ){
                result = value
                bestValue = value;
           }


        A filter that contains all zeros is identical to a MPSImageAreaMin
       filter. The center filter element is assumed to be 0, to avoid causing
       a general lightening of the image.

       The definition of the filter for MPSImageErode is different from
       vImage. (MPSErode_filter_value = 1.0f-vImageErode_filter_value.) This
       allows MPSImageDilate and MPSImageErode to use the same filter, making
       open and close operators easier to write. The edgeMode property is
       assumed to always be MPSImageEdgeModeClamp for this filter.



Author

       Generated automatically by Doxygen for
       MetalPerformanceShaders.framework from the source code.




Version MetalPerformanceShaders-Wed Jul 20 2016               MPSImageErode(3)

Mac OS X 10.12.3 - Generated Tue Feb 7 07:50:39 CST 2017
© manpagez.com 2000-2025
Individual documents may contain additional copyright information.