Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef COLORCLUSTERIZE_INCLUDED
Toshihiro Shimizu 890ddd
#define COLORCLUSTERIZE_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
#include <set></set>
shun-iwasawa 443318
// #include "tpixel.h"
Toshihiro Shimizu 890ddd
#include "traster.h"
Toshihiro Shimizu 890ddd
shun-iwasawa dd780b
#include <qlist></qlist>
shun-iwasawa dd780b
Toshihiro Shimizu 890ddd
#undef DVAPI
Toshihiro Shimizu 890ddd
#undef DVVAR
Toshihiro Shimizu 890ddd
#ifdef TAPPTOOLS_EXPORTS
Toshihiro Shimizu 890ddd
#define DVAPI DV_EXPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_EXPORT_VAR
Toshihiro Shimizu 890ddd
#else
Toshihiro Shimizu 890ddd
#define DVAPI DV_IMPORT_API
Toshihiro Shimizu 890ddd
#define DVVAR DV_IMPORT_VAR
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace TColorUtils {
Toshihiro Shimizu 890ddd
shun-iwasawa 443318
/*-- Combine similar colors into one style --*/
Shinya Kitaoka 120a6e
DVAPI void buildPalette(std::set<tpixel32> &palette, const TRaster32P &raster,</tpixel32>
Shinya Kitaoka 120a6e
                        int maxColorCount);
shun-iwasawa 443318
/*-- Make each different pixel color a separate style --*/
Shinya Kitaoka 120a6e
DVAPI void buildPrecisePalette(std::set<tpixel32> &palette,</tpixel32>
Shinya Kitaoka 120a6e
                               const TRaster32P &raster, int maxColorCount);
shun-iwasawa dd780b
//  pick up color chip sorrounded by frames with specified color
shun-iwasawa dd780b
DVAPI void buildColorChipPalette(QList<qpair<tpixel32, tpoint="">> &palette,</qpair<tpixel32,>
shun-iwasawa dd780b
                                 const TRaster32P &raster, int maxColorCount,
shun-iwasawa dd780b
                                 const TPixel32 &gridColor,
shun-iwasawa dd780b
                                 const int gridLineWidth,
shun-iwasawa dd780b
                                 const int colorChipOrder);
shun-iwasawa 443318
}  // namespace TColorUtils
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif