2016-05-17 03:04:11 +12:00
|
|
|
|
#pragma once
|
|
|
|
|
|
2016-03-19 06:57:51 +13:00
|
|
|
|
#ifndef igs_hsv_adjust_h
|
|
|
|
|
#define igs_hsv_adjust_h
|
|
|
|
|
|
|
|
|
|
#ifndef IGS_HSV_ADJUST_EXPORT
|
|
|
|
|
#define IGS_HSV_ADJUST_EXPORT
|
|
|
|
|
#endif
|
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
|
namespace igs {
|
|
|
|
|
namespace hsv_adjust {
|
2016-03-19 06:57:51 +13:00
|
|
|
|
IGS_HSV_ADJUST_EXPORT void change(
|
2021-11-09 16:32:18 +13:00
|
|
|
|
float *image_array, const int height, const int width, const int channels,
|
|
|
|
|
const float *ref, /* 豎ゅa繧狗判蜒上→蜷後§鬮倥∝ケ・…hannels謨ー */
|
|
|
|
|
const double hue_pivot, /* 0.0 ...0...360... */
|
|
|
|
|
const double hue_scale, /* 1.0 ...1... */
|
|
|
|
|
const double hue_shift, /* 0.0 ...0...360... */
|
|
|
|
|
const double sat_pivot, /* 0.0 ...0...1... */
|
|
|
|
|
const double sat_scale, /* 1.0 ...1... */
|
|
|
|
|
const double sat_shift, /* 0.0 ...0...1... */
|
|
|
|
|
const double val_pivot, /* 0.0 ...0...1... */
|
|
|
|
|
const double val_scale, /* 1.0 ...1... */
|
|
|
|
|
const double val_shift, /* 0.0 ...0...1... */
|
2016-06-15 18:43:10 +12:00
|
|
|
|
const bool add_blend_sw
|
|
|
|
|
/* 効果(変化量)をアルファブレンドするか否かのスイッチ
|
|
|
|
|
add_blend_sw == true
|
|
|
|
|
アルファ値によりRGBの変化量を調整する
|
|
|
|
|
合成方法が
|
|
|
|
|
合成画 = 下絵 * (1 - alpha) + 上絵
|
|
|
|
|
の場合こちらを使う
|
|
|
|
|
add_blend_sw == false
|
|
|
|
|
アルファ値に関係なくRGBが変化する
|
|
|
|
|
合成方法が
|
|
|
|
|
合成画 = 下絵 * (1 - alpha) + 上絵 * alpha
|
|
|
|
|
の場合こちらを使う
|
|
|
|
|
*/
|
2021-11-09 16:32:18 +13:00
|
|
|
|
);
|
2016-03-19 06:57:51 +13:00
|
|
|
|
}
|
2021-11-09 16:32:18 +13:00
|
|
|
|
} // namespace igs
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
|
|
#endif /* !igs_hsv_adjust_h */
|