Shinya Kitaoka 810553
#pragma once
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef _AUTOADJUST_H_
Toshihiro Shimizu 890ddd
#define _AUTOADJUST_H_
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "trasterimage.h"
Toshihiro Shimizu 890ddd
void set_autoadjust_window(int x0, int y0, int x1, int y1);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void black_eq_algo(const TRasterImageP &image);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void build_lw(const TRasterImageP &image, float lw[256]);
Toshihiro Shimizu 890ddd
void build_lw_lut(float ref_lw[256], float lw[256], UCHAR lut[256]);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void build_gr_cum(const TRasterImageP &image, int cum[256]);
Toshihiro Shimizu 890ddd
void build_gr_lut(int ref_cum[256], int cum[256], UCHAR lut[256]);
Toshihiro Shimizu 890ddd
void apply_lut(const TRasterImageP &image, UCHAR lut[256]);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void histo_l_algo(const TRasterImageP &image, int reference);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
int eval_image_th(const TRasterImageP &image, int *threshold, float *linewidth);
Shinya Kitaoka 120a6e
// void thresh_image (const TRasterImageP &image, int threshold, int
Shinya Kitaoka 120a6e
// oversample_factor);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
void autoadj_set_black_value(int black);
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif