#include <HxSFFactory.h>
Public Methods | |
| HxSF | makeSFfromImage (HxImageRep im) |
| New Structuring Function from a given image. More... | |
| HxSF | fromFunction (HxImageRep im) |
| New Structuring Function from a given function. More... | |
| HxSF | makeFlatSF (HxImageSignature sig, HxSizes sz, HxValue val=0) |
| New Flat Structuring Function of a given signature, size, and pixel value. More... | |
| HxSF | makeBoxSF (HxImageSignature sig, HxSizes sz, HxValue val=0) |
| HxSF | makeCrossSF (HxImageSignature sig, HxSizes sz, HxValue val=0) |
| HxSF | makeDiskSF (HxImageSignature sig, HxSizes sz, HxValue val=0) |
| HxSF | makeDiamondSF (HxImageSignature sig, HxSizes sz, HxValue val=0) |
| HxSF | makeGaussianSF (HxSizes sz, double sigma) |
| HxSF | makeParabolaSF (HxSizes sz, double sigma) |
Static Public Methods | |
| HxSFFactory & | instance () |
| The one and only instance of this class. More... | |
All rights reserved.
|
|
The one and only instance of this class.
00009 {
00010 static HxSFFactory theFactory;
00011 return theFactory;
00012 }
|
|
|
New Structuring Function from a given image.
00016 {
00017 return HxSF(kernel, false, false, 8);
00018 }
|
|
|
New Structuring Function from a given function. For instance, one can specify a Gaussian function here From the given function, the actuall image repesentation will be computed |
|
||||||||||||||||
|
New Flat Structuring Function of a given signature, size, and pixel value.
00022 {
00023 HxImageRep kernel = HxImageFactory::instance().fromValue(sig, sz, val);
00024
00025 //this is separable, so create the H and V kernels
00026 HxSizes szV(sz.y(), 1, sz.z());
00027 HxSizes szH(sz.x(), 1, sz.z());
00028 HxImageRep hKernel = HxMakeFromValue(sig, szH, val);
00029 HxImageRep vKernel = HxMakeFromValue(sig, szV, val);
00030
00031
00032 return HxSF(kernel, hKernel, vKernel, true, true, 8);
00033 }
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001