Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

AnImageOp Class Reference

#include <AnImageOp.hpp>

Inheritance diagram for AnImageOp:

Inheritance graph
[legend]
Collaboration diagram for AnImageOp:

Collaboration graph
[legend]
List of all members.

Detailed Description

Abstract Image Filter.

Author:
Bernard De Cuyper
Version:
0.05
Date:
20/10/2003
 
Purpose:        Define the concept of standart image operations.


                

@ Copyrights: Bernard De Cuyper & Eddy Fraiha 2002, Eggs & Pictures. MIT/Open BSD copyright model.


Public Methods

 AnImageOp ()
virtual ~AnImageOp ()
virtual int getChannelDepth ()
virtual void setChannelDepth (int val)
virtual bool getLuminanceFlag ()
virtual void setLuminanceFlag (bool autoGrey=true)
virtual AbsLimitergetLimiter ()
virtual void setLimiter (AbsLimiter *alimiter=0)
virtual int getMaskValue ()
 current mask id for specific restoration, default is 255

virtual void setMaskValue (int value)
 set mask id for specific restoration

virtual void setMask (int n, int *xp, int *yp)
virtual AnImagefilter (AnImage *src, AnImage *dest=0)=0
 Local full image filtering.

virtual AnImagefilter (AR3ChannelConverter *convertor, AnImage *src, AnImage *dest=0)
 Local full image filtering with color model conversions.

virtual AnImageselectedFilter (AnImage *mask, AnImage *src, AnImage *dest=0)
 Local filtering in a mask area.

virtual AnImageselectedFilter (AR3ChannelConverter *convertor, AnImage *mask, AnImage *src, AnImage *dest=0)
 Local filtering in a mask area with color model conversions.

virtual void report (FILE *file)

Protected Methods

virtual void loadMask (AnImage &mask)
 loading a mask

virtual void unloadMask ()
 remove a mask


Protected Attributes

int channelDepth
bool autoLuminanceFlag
AbsLimiterlimiter
int maskValue
 Mask Id: default 255 [1..255].

int nMask
 number mask cells

int * xm
 x mask cells positions

int * ym
 y mask cells positions


Member Function Documentation

virtual AnImage* AnImageOp::filter AR3ChannelConverter   convertor,
AnImage   src,
AnImage   dest = 0
[inline, virtual]
 

Local full image filtering with color model conversions.

Parameters:
convertor  is AR3ChannelConverter* is a color convertor
src  is AnImage* is AnImage source channel
dest  is AnImage* is AnImage result/placeholder
Returns :
AnImage* as result,

Reimplemented in IFMultiImageOp, and IMultiImageOp.

virtual AnImage* AnImageOp::filter AnImage   src,
AnImage   dest = 0
[pure virtual]
 

Local full image filtering.

Parameters:
src  is AnImage* is AnImage source channel
dest  is AnImage* is AnImage result/placeholder
Returns :
AnImage* as result,

Implemented in AnInpaintingOp, BertalmioInpainting, BicubicMagnifierOp, BilinearMagnifierOp, CDDInpainting, DistanceFMM, DistanceFMM1, DistanceFMM_O2, EulerElasticaInpainting, GammaOp, IBrightnessOp, ICAosPeronaOp, IClosingOp, ICMultiImageOp, IColorToGreyTranfertOp, ICShockOp, ICThomasHeatOp, IDilatationOp, IEikonalFastSweepingOp, IErosionOp, IFMultiImageOp, IGilbaoComplexDiffOp, IHJFastSweepingOp, ILargeClosingOp, ILargeDynamicGistOp, ILargeDynamicLeeDetectorOp, ILargeDynamicRangeOp, ILargeLocalThresholdOp, ILargeMContrastOp, ILargeMContrastStretchingOp, ILargeMLaplacianOp, ILargeMorphologicalOp, ILargeMSmoothOp, ILargeOpeningOp, ILargeRampGistOp, ILargeRampLeeDetectorOp, ILargeRampRangeOp, ILargeRampThresholdOp, ILargeTextureGistOp, ILargeTextureLeeDetectorOp, ILargeTextureRangeOp, ILargeTextureThresholdOp, ILargeTopHatOp, ILocalThresholdOp, IMContrastOp, IMeanShiftOp, IMNonLinearLaplaceEdgeOp, IMultiImageOp, IMultiObjectPassFilter, IMZeroCrossingOp, IObjectPassFilter, IOpeningOp, IPixel2ClassLabellingOp, IPixelFirstPcaOp, IPixelLabellingOp, IPixelLabelMappingOp, IPixelPcaOp, IShadowOp, ISimpleClosingOp, ISimpleExtensionOp, ISimpleOpeningOp, ITopHatOp, IWindowPcaOp, Local_Ex2, MaskMappingOp, MDistanceFMM, MImageSequenceOp, MultiResolutionInpainting, OliveiraInpainting, SelectiveValueOp, SimilarPixelFMM, TVInpainting, and TVInpainting_S2.

void AnImageOp::loadMask AnImage   mask [protected, virtual]
 

loading a mask

Parameters:
mask  is an AnImage& mostly a ByteImage with ids [1..255]

virtual AnImage* AnImageOp::selectedFilter AR3ChannelConverter   convertor,
AnImage   mask,
AnImage   src,
AnImage   dest = 0
[inline, virtual]
 

Local filtering in a mask area with color model conversions.

Parameters:
convertor  is AR3ChannelConverter* is a color convertor
mask  is AnImage* is a ByteImage
src  is AnImage* is AnImage source channel
dest  is AnImage* is AnImage result/placeholder
Returns :
AnImage* as result,

Reimplemented in IFMultiImageOp, and IMultiImageOp.

virtual AnImage* AnImageOp::selectedFilter AnImage   mask,
AnImage   src,
AnImage   dest = 0
[inline, virtual]
 

Local filtering in a mask area.

Parameters:
mask  is AnImage* is a ByteImage
src  is AnImage* is AnImage source channel
dest  is AnImage* is AnImage result/placeholder
Returns :
AnImage* as result,

Reimplemented in AxiomaticMRInpainting, BertalmioInpainting, CDDInpainting, DistanceFMM, DistanceFMM1, DistanceFMM_O2, DTransportFMM, EulerElasticaInpainting, GammaOp, ICAosPeronaOp, ICMultiImageOp, ICShockOp, ICThomasHeatOp, IEikonalFastSweepingOp, IFMultiImageOp, IGilbaoComplexDiffOp, IHJFastSweepingOp, IMultiImageOp, Local_Ex2, MDistanceFMM, MImageSequenceOp, MultiResolutionInpainting, OliveiraInpainting, SimilarPixelFMM, TVInpainting, and TVInpainting_S2.


The documentation for this class was generated from the following files:
SourceForge.net Logo
Restoreinpaint sourceforge project `C++/Java Image Processing, Restoration, Inpainting Project'.

Bernard De Cuyper: Open Project Leader: Concept, design and development.
Bernard De Cuyper & Eddy Fraiha 2002, 2003. Bernard De Cuyper 2004. Open and free, for friendly usage only.
Modifications on Belgium ground of this piece of artistic work, by governement institutions or companies, must be notified to Bernard De Cuyper.
bern_bdc@hotmail.com