Blame toonz/sources/include/tcolorutils.h
|
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 |
|
|
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 |
|
|
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);
|
|
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);
|
|
Toshihiro Shimizu |
890ddd |
}
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
//------------------------------------------------------------------------------
|
|
Toshihiro Shimizu |
890ddd |
|
|
Toshihiro Shimizu |
890ddd |
#endif
|