#include <img.h>
Definition at line 253 of file img.h.
IMAGELINE::IMAGELINE | ( | ) | [inline] |
IMAGELINE::~IMAGELINE | ( | ) | [inline] |
void IMAGELINE::init | ( | ) | [inline] |
void IMAGELINE::init | ( | INT32 | width | ) | [inline] |
Definition at line 269 of file img.h.
References alloc_mem(), free_mem(), MAXIMAGEWIDTH, and NULL.
Referenced by block_edges(), PIXROW::char_clip_image(), IMAGE::convolver(), TessBaseAPI::DumpPGM(), enlarge_sub_image(), fast_reduce_sub_image(), IMAGE::get_column(), IMAGE::get_line(), match1(), read_tif_image(), reduce_sub_image(), and TessBaseAPI::ThresholdRect().
00270 { //size of line 00271 if (width <= 0) 00272 width = MAXIMAGEWIDTH; 00273 if (width > linewidth) { 00274 if (line != NULL) 00275 free_mem(line); 00276 linewidth = width; 00277 line = (UINT8 *) alloc_mem (linewidth * sizeof (UINT8)); 00278 } 00279 pixels = line; 00280 bpp = 8; 00281 }
COLOUR_PIX IMAGELINE::operator[] | ( | INT32 | index | ) | [inline] |
void IMAGELINE::set_bpp | ( | INT8 | new_bpp | ) | [inline] |
void IMAGE::get_column | ( | INT32 | x, | |
INT32 | y, | |||
INT32 | height, | |||
IMAGELINE * | linebuf, | |||
INT32 | margins | |||
) | [friend] |
void IMAGE::put_column | ( | INT32 | x, | |
INT32 | y, | |||
INT32 | height, | |||
IMAGELINE * | linebuf, | |||
INT32 | margins | |||
) | [friend] |
Definition at line 257 of file img.h.
Referenced by enlarge_sub_image(), IMAGE::fast_get_line(), fast_reduce_sub_image(), IMAGE::get_line(), IMAGE::put_column(), and IMAGE::put_line().
UINT8* IMAGELINE::line [private] |
Definition at line 343 of file img.h.
Referenced by IMAGE::fast_put_line(), IMAGE::get_column(), and IMAGE::get_line().
INT32 IMAGELINE::linewidth [private] |
Definition at line 256 of file img.h.
Referenced by CHAR_PROTO::add_sample(), bias_sub_image(), block_edges(), PIXROW::char_clip_image(), CHAR_PROTO::CHAR_PROTO(), PIXROW::contract(), IMAGE::convolver(), copy_sub_image(), TessBaseAPI::DumpPGM(), enlarge_sub_image(), PIXROW::extend(), IMAGE::fast_get_line(), fast_reduce_sub_image(), IMAGE::get_column(), IMAGE::get_line(), invert_image(), CHAR_PROTO::make_image(), match1(), IMAGE::put_column(), IMAGE::put_line(), read_tif_image(), reduce_sub_image(), scale_image(), starbase_to_normal(), TessBaseAPI::ThresholdRect(), and whiteout_block().