Shinya Kitaoka 810553
#pragma once
Shinya Kitaoka 810553
Toshihiro Shimizu 890ddd
#ifndef igs_density_h
Toshihiro Shimizu 890ddd
#define igs_density_h
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef IGS_DENSITY_EXPORT
Toshihiro Shimizu 890ddd
#define IGS_DENSITY_EXPORT
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
namespace igs {
Shinya Kitaoka 120a6e
namespace density {
Toshihiro Shimizu 890ddd
IGS_DENSITY_EXPORT void change(
Shinya Kitaoka 120a6e
    unsigned char *image_array /* RGBAでなければならない */
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const int height, const int width,
Shinya Kitaoka 120a6e
    const int channels /* 4(=RGBAでなければならない) */
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const int bits
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const unsigned char *ref /* 求める画像と同じ高、幅、ch数 */
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const int ref_bits /* refがゼロのときはここもゼロ */
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const int ref_mode /* 0=R,1=G,2=B,3=A,4=Luminance,5=Nothing */
Toshihiro Shimizu 890ddd
Shinya Kitaoka 120a6e
    ,
Shinya Kitaoka 120a6e
    const double density = 1.0);
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
}
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif /* !igs_density_h */