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>
Toshihiro Shimizu 890ddd
//#include "tpixel.h"
Toshihiro Shimizu 890ddd
#include "traster.h"
Toshihiro Shimizu 890ddd
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
Toshihiro Shimizu 890ddd
/*-- 似ている色をまとめて1つのStyleにする --*/
Shinya Kitaoka 120a6e
DVAPI void buildPalette(std::set<tpixel32> &palette, const TRaster32P &raster,</tpixel32>
Shinya Kitaoka 120a6e
                        int maxColorCount);
Toshihiro Shimizu 890ddd
/*-- 全ての異なるピクセルの色を別のStyleにする --*/
Shinya Kitaoka 120a6e
DVAPI void buildPrecisePalette(std::set<tpixel32> &palette,</tpixel32>
Shinya Kitaoka 120a6e
                               const TRaster32P &raster, int maxColorCount);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
//------------------------------------------------------------------------------
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif