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

halftoner::FloydSteinberg Class Reference

#include <FloydSteinberg.h>

Inheritance diagram for halftoner::FloydSteinberg:

Inheritance graph
[legend]
Collaboration diagram for halftoner::FloydSteinberg:

Collaboration graph
[legend]
List of all members.

Detailed Description

Class FloydSteinberg contains the code to halftone an image with the algorithm developed by the Floyd-Steinberg pair.

Definition at line 37 of file FloydSteinberg.h.

Public Methods

Protected Methods

Implemented methods from class ErrorDiffusionHalftoner

Constructor & Destructor Documentation

halftoner::FloydSteinberg::FloydSteinberg  
 

Constructor.

Definition at line 35 of file FloydSteinberg.cxx.

halftoner::FloydSteinberg::~FloydSteinberg  
 

Destructor.

Definition at line 45 of file FloydSteinberg.cxx.


Member Function Documentation

int halftoner::FloydSteinberg::halftoneToLeft float *    source,
int    i,
int    j,
int    offset,
int    width,
int    height,
int    threshold
throw () [protected, virtual]
 

Perform the algorithm for one pixel and transfering the error on the left.

Parameters:
source  the source for pixel intensity.
i  the column position of the current pixel.
j  the row position of the current pixel.
offset  the index of the pixel in source.
width  the width of the image.
height  the height of the image.
threshold  the threshold of the algorithm.
Returns :
the intensity value of the new pixel.

Implements halftoner::ErrorDiffusionHalftoner.

Definition at line 94 of file FloydSteinberg.cxx.

int halftoner::FloydSteinberg::halftoneToRight float *    source,
int    i,
int    j,
int    offset,
int    width,
int    height,
int    threshold
throw () [protected, virtual]
 

Perform the algorithm for one pixel and transfering the error on the right.

Parameters:
source  the source for pixel intensity.
i  the column position of the current pixel.
j  the row position of the current pixel.
offset  the index of the pixel in source.
width  the width of the image.
height  the height of the image.
threshold  the threshold of the algorithm.
Returns :
the intensity value of the new pixel.

Implements halftoner::ErrorDiffusionHalftoner.

Definition at line 55 of file FloydSteinberg.cxx.


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