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

halftoner::VGexp Class Reference

#include <VGexp.h>

Inheritance diagram for halftoner::VGexp:

Inheritance graph
Collaboration diagram for halftoner::VGexp:

Collaboration graph
List of all members.

Detailed Description

Class VGexp implements my attempt to improve the second technique by the pair Velho-Gomes..

Definition at line 41 of file VGexp.h.

Public Methods

Implemented method from class Halftoner

Constructor & Destructor Documentation

halftoner::VGexp::VGexp   throw ()


Definition at line 40 of file VGexp.cxx.



Definition at line 50 of file VGexp.cxx.

Member Function Documentation

Image * halftoner::VGexp::halftone const Image   source,
const HalftonerSpec   spec
throw (std::invalid_argument) [virtual]

Halftones the given image according to the given specifications.

source  the source image.
spec  the specifications of the algorithm.
Returns :
the halftoned image, which must be manually deleted.
std::invalid_argument  if the image is not square.
std::invalid_argument  if the dimension of the image is not a power of 2 greater than or equal to 32 and less than or equal to 512.
make this better.

Implements halftoner::Halftoner.

Definition at line 60 of file VGexp.cxx.

References halftoner::VGSpec::getClusterSize(), halftoner::VGexpSpec::getErr1(), halftoner::VGexpSpec::getErr2(), halftoner::VGexpSpec::getErr3(), halftoner::VGSpec::getMnemonic(), and halftoner::Image::setColorAt().

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