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

halftoner::Stucki Class Reference

#include <Stucki.h>

Inheritance diagram for halftoner::Stucki:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Class Stucki contains the code to halftone an image with the algorithm developed by Stucki.

Definition at line 38 of file Stucki.h.

Public Methods

Protected Methods

Implemented methods from class ErrorDiffusionHalftoner

Constructor & Destructor Documentation

halftoner::Stucki::Stucki  
 

Constructor.

Definition at line 35 of file Stucki.cxx.

halftoner::Stucki::~Stucki  
 

Destructor.

Definition at line 45 of file Stucki.cxx.


Member Function Documentation

int halftoner::Stucki::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 146 of file Stucki.cxx.

int halftoner::Stucki::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 Stucki.cxx.


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