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

halftoner::ErrorDiffusionHalftoner::PathStrategy Class Reference

#include <ErrorDiffusionHalftoner.h>

Inheritance diagram for halftoner::ErrorDiffusionHalftoner::PathStrategy:

Inheritance graph
[legend]
List of all members.

Detailed Description

Class PathStrategy is the interface for the scan strategy used by the error diffusion algorithm.

Definition at line 52 of file ErrorDiffusionHalftoner.h.

Public Methods

Abstract method

Protected Methods


Constructor & Destructor Documentation

halftoner::ErrorDiffusionHalftoner::PathStrategy::PathStrategy   throw () [protected]
 

Constructor.

Definition at line 45 of file ErrorDiffusionHalftoner.cxx.

halftoner::ErrorDiffusionHalftoner::PathStrategy::~PathStrategy   throw () [virtual]
 

Destructor.

Definition at line 55 of file ErrorDiffusionHalftoner.cxx.


Member Function Documentation

virtual Image* halftoner::ErrorDiffusionHalftoner::PathStrategy::operator() ErrorDiffusionHalftoner   halftoner,
const Image   source,
int    threshold
throw () [pure virtual]
 

Applies the strategy.

Parameters:
halftoner  the halftoner to apply the strategy on.
source  the source image.
threshold  the threshold of the algorithm.
Returns :
the halftoned image.

Implemented in halftoner::ErrorDiffusionHalftoner::ScanlinePathStrategy, and halftoner::ErrorDiffusionHalftoner::SerpentinePathStrategy.


The documentation for this class was generated from the following files:
Generated on Sat Sep 7 16:35:26 2002 for Halftoning Library by doxygen1.2.17