| #pragma once |
| |
| #ifndef igs_hls_noise_h |
| #define igs_hls_noise_h |
| |
| #ifndef IGS_HLS_NOISE_EXPORT |
| #define IGS_HLS_NOISE_EXPORT |
| #endif |
| |
| namespace igs { |
| namespace hls_noise { |
| IGS_HLS_NOISE_EXPORT void change( |
| unsigned char *image_array |
| |
| , |
| const int height, const int width, const int channels, const int bits |
| |
| , |
| const unsigned char *ref |
| , |
| const int ref_bits |
| , |
| const int ref_mode |
| |
| |
| ようにするためにカメラエリアを指定する */ |
| , |
| const int camera_x, const int camera_y, const int camera_w, |
| const int camera_h |
| |
| , |
| const double hue_range |
| , |
| const double lig_range |
| , |
| const double sat_range |
| , |
| const double alp_range |
| , |
| const unsigned long random_seed |
| , |
| const double near_blur |
| |
| , |
| const double lig_effective |
| , |
| const double lig_center |
| , |
| const int lig_type |
| 0(shift_whole),1(shift_term),2(decrease_whole),3(decrease_term) */ |
| , |
| const double sat_effective |
| , |
| const double sat_center |
| , |
| const int sat_type |
| 0(shift_whole),1(shift_term),2(decrease_whole),3(decrease_term) */ |
| , |
| const double alp_effective |
| , |
| const double alp_center |
| , |
| const int alp_type |
| 0(shift_whole),1(shift_term),2(decrease_whole),3(decrease_term) */ |
| |
| , |
| const bool add_blend_sw |
| |
| add_blend_sw == true |
| アルファ値によりRGBの変化量を調整する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 |
| の場合こちらを使う |
| add_blend_sw == false |
| アルファ値に関係なくRGBが変化する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 * alpha |
| の場合こちらを使う |
| */ |
| ); |
| } |
| } |
| |
| #endif |