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

halftoner::JarvisJudiceNinke Class Reference

#include <JarvisJudiceNinke.h>

Inheritance diagram for halftoner::JarvisJudiceNinke:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Class JarvisJudiceNinke contains the code to halftone an image with the algorithm developed by the Jarvis-Judice-Ninke trio.

Definition at line 38 of file JarvisJudiceNinke.h.

Public Methods

Protected Methods

Implemented methods from class ErrorDiffusionHalftoner

Constructor & Destructor Documentation

halftoner::JarvisJudiceNinke::JarvisJudiceNinke  
 

Constructor.

Definition at line 36 of file JarvisJudiceNinke.cxx.

halftoner::JarvisJudiceNinke::~JarvisJudiceNinke  
 

Destructor.

Definition at line 46 of file JarvisJudiceNinke.cxx.


Member Function Documentation

int halftoner::JarvisJudiceNinke::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 167 of file JarvisJudiceNinke.cxx.

int halftoner::JarvisJudiceNinke::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 66 of file JarvisJudiceNinke.cxx.


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