SMIL 1.1.2
Loading...
Searching...
No Matches
MorphImageFunctionBase< T_in, T_out > Class Template Reference

Base morpho operator class. More...

Detailed Description

template<class T_in, class T_out = T_in>
class smil::MorphImageFunctionBase< T_in, T_out >

Base morpho operator class.

Example

from smilPython import *
class myMeanMorphoFunction(MorphImageFunctionBase_UINT8):
def processPixel(self, i, relOffList):
pixSum = 0.
for nb in relOffList:
pixSum += self.imageIn[i + nb]
self.imageOut[i] = int(pixSum / len(relOffList))
imIn = Image("https://smil.cmm.minesparis.psl.eu/images/lena.png")
imOut = Image(imIn)
func = myMeanMorphoFunction()
func(imIn, imOut)
imOut.show()

#include <DMorphImageOperations.hpp>

+ Inheritance diagram for MorphImageFunctionBase< T_in, T_out >:
+ Collaboration diagram for MorphImageFunctionBase< T_in, T_out >:

The documentation for this class was generated from the following files: