tahoma2d/toonz/sources/toonzlib/autoadjust.h

27 lines
800 B
C
Raw Normal View History

2016-05-17 03:04:11 +12:00
#pragma once
2016-03-19 06:57:51 +13:00
#ifndef _AUTOADJUST_H_
#define _AUTOADJUST_H_
#include "trasterimage.h"
void set_autoadjust_window(int x0, int y0, int x1, int y1);
void black_eq_algo(const TRasterImageP &image);
void build_lw(const TRasterImageP &image, float lw[256]);
void build_lw_lut(float ref_lw[256], float lw[256], UCHAR lut[256]);
void build_gr_cum(const TRasterImageP &image, int cum[256]);
void build_gr_lut(int ref_cum[256], int cum[256], UCHAR lut[256]);
void apply_lut(const TRasterImageP &image, UCHAR lut[256]);
void histo_l_algo(const TRasterImageP &image, int reference);
int eval_image_th(const TRasterImageP &image, int *threshold, float *linewidth);
2016-06-15 18:43:10 +12:00
// void thresh_image (const TRasterImageP &image, int threshold, int
// oversample_factor);
2016-03-19 06:57:51 +13:00
void autoadj_set_black_value(int black);
#endif