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

halftoner::VG91 Class Reference

#include <VG91.h>

Inheritance diagram for halftoner::VG91:

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

Collaboration graph
[legend]
List of all members.

Detailed Description

Class VG91 implements the technique invented by the pair Velho-Gomes in 1991.

Definition at line 42 of file VG91.h.

Public Methods

Implemented method from class Halftoner

Constructor & Destructor Documentation

halftoner::VG91::VG91   throw ()
 

Constructor.

Definition at line 40 of file VG91.cxx.

halftoner::VG91::~VG91  
 

Destructor.

Definition at line 50 of file VG91.cxx.


Member Function Documentation

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

Halftones the given image according to the given specifications.

Parameters:
source  the source image.
spec  the specifications of the algorithm.
Returns :
the halftoned image, which must be manually deleted.
Exceptions:
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.
Todo:
make this better.

Implements halftoner::Halftoner.

Definition at line 60 of file VG91.cxx.

References halftoner::VGSpec::getClusterSize(), 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:26 2002 for Halftoning Library by doxygen1.2.17