Powertek.Imaging.PtColorClusterer Class Reference

KMeans Cluster Analysis for Different ColorSpaces Clustering can be used to reduce the Colors of an Bitmap. More...

Collaboration diagram for Powertek.Imaging.PtColorClusterer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 PtColorClusterer ()
void Init (Bitmap OrgBmp)
void Calculate (int clusterCount, int maxIterations, bool lowPrecision, PtColorSpace colorSpace, out Bitmap resBitmap)
void Calculate (int clusterCount, int maxIterations, bool lowPrecision, PtColorSpace colorSpace, TextBox textBox, out Bitmap resBitmap)
void Calculate (int clusterCount, int maxIterations, bool lowPrecision, PtColorSpace colorSpace, TextBox textBox, PictureBox pb, out Bitmap resBitmap)
void AbortCalculation ()


Detailed Description


Constructor & Destructor Documentation

Powertek.Imaging.PtColorClusterer.PtColorClusterer (  ) 

Create the class.


Member Function Documentation

void Powertek.Imaging.PtColorClusterer.AbortCalculation (  ) 

Cancel the Calculation.

void Powertek.Imaging.PtColorClusterer.Calculate ( int  clusterCount,
int  maxIterations,
bool  lowPrecision,
PtColorSpace  colorSpace,
TextBox  textBox,
PictureBox  pb,
out Bitmap  resBitmap 
)

Calculate the clustering with iteration number output and output of the partial results.

Parameters:
clusterCount Maximum number of clusters (1..)
maxIterations Maximum number of iterations (1..)
lowPrecision Use low precision calculation, improve speed
colorSpace Colorspace for the clustering
textBox Textbox to write the iteration number to
pb Picturebox to paint the partial image to
resBitmap Output Bitmap

void Powertek.Imaging.PtColorClusterer.Calculate ( int  clusterCount,
int  maxIterations,
bool  lowPrecision,
PtColorSpace  colorSpace,
TextBox  textBox,
out Bitmap  resBitmap 
)

Calculate the clustering with iteration number output.

Parameters:
clusterCount Maximum number of clusters (1..)
maxIterations Maximum number of iterations (1..)
lowPrecision Use low precision calculation, improve speed
colorSpace Colorspace for the clustering
textBox Textbox to write the iteration number to
resBitmap Output Bitmap

void Powertek.Imaging.PtColorClusterer.Calculate ( int  clusterCount,
int  maxIterations,
bool  lowPrecision,
PtColorSpace  colorSpace,
out Bitmap  resBitmap 
)

Calculate the clustering.

Parameters:
clusterCount Maximum number of clusters (1..)
maxIterations Maximum number of iterations (1..)
lowPrecision Use low precision calculation, improve speed
colorSpace Colorspace for the clustering
resBitmap Output Bitmap

void Powertek.Imaging.PtColorClusterer.Init ( Bitmap  OrgBmp  ) 

Init the clustering.

Parameters:
OrgBmp 


The documentation for this class was generated from the following file:

Generated on Thu Nov 20 04:48:15 2008 for Powertek.Imaging, 2.0.2.46 by  doxygen 1.5.7.1