tahoma2d/toonz/sources/stdfx/igs_hsv_adjust.h
2023-02-25 20:59:02 -05:00

41 lines
1.5 KiB
C++
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#pragma once
#ifndef igs_hsv_adjust_h
#define igs_hsv_adjust_h
#ifndef IGS_HSV_ADJUST_EXPORT
#define IGS_HSV_ADJUST_EXPORT
#endif
namespace igs {
namespace hsv_adjust {
IGS_HSV_ADJUST_EXPORT void change(
float *image_array, const int height, const int width, const int channels,
const float *ref, /* 豎ゅ繧狗判蜒上→蜷後§鬮倥€∝ケ・€…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... */
const bool add_blend_sw
/* 効果(変化量)
add_blend_sw == true
RGBの変化量を調整する
= * (1 - alpha) +
使
add_blend_sw == false
RGBが変化する
= * (1 - alpha) + * alpha
使
*/
);
}
} // namespace igs
#endif /* !igs_hsv_adjust_h */