Horus Doc || C++ Reference || Class Overview   Pixels   Images   Detector   Geometry   Registry || Doxygen's quick Index  

HxSFFactory Class Reference

Copyright (c) 2002, University of Amsterdam, The Netherlands. More...

#include <HxSFFactory.h>

List of all members.

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...


Detailed Description

Copyright (c) 2002, University of Amsterdam, The Netherlands.

All rights reserved.

Author:
Dennis Koelma (koelma@science.uva.nl)
Leon Todoran (todoran@science.uva.nl)
Version:
0.1


Member Function Documentation

HxSFFactory & HxSFFactory::instance   [static]
 

The one and only instance of this class.

00009 {
00010     static HxSFFactory theFactory;
00011     return theFactory;
00012 }

HxSF HxSFFactory::makeSFfromImage HxImageRep    kernel
 

New Structuring Function from a given image.

00016 {
00017      return HxSF(kernel, false, false, 8);
00018 }

HxSF HxSFFactory::fromFunction HxImageRep    im
 

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

HxSF HxSFFactory::makeFlatSF HxImageSignature    sig,
HxSizes    sz,
HxValue    val = 0
 

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jan 27 15:49:10 2003 for C++Reference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001