Leptonica  1.82.0
Image processing and image analysis suite
Pix Struct Reference

#include <pix.h>

Data Fields

l_uint32 w
 
l_uint32 h
 
l_uint32 d
 
l_uint32 spp
 
l_uint32 wpl
 
l_uint32 refcount
 
l_int32 xres
 
l_int32 yres
 
l_int32 informat
 
l_int32 special
 
char * text
 
struct PixColormapcolormap
 
l_uint32 * data
 

Detailed Description

Basic Pix

Definition at line 138 of file pix.h.

Field Documentation

◆ colormap

struct PixColormap* Pix::colormap

colormap (may be null)

Definition at line 153 of file pix.h.

Referenced by pixDestroyColormap(), and pixSetColormap().

◆ d

l_uint32 Pix::d

depth in bits (bpp)

Definition at line 142 of file pix.h.

Referenced by pixGetDimensions().

◆ data

l_uint32* Pix::data

the image data

Definition at line 154 of file pix.h.

Referenced by pixClearAll(), pixCreate(), pixCreateTemplate(), pixGetData(), and pixSetData().

◆ h

l_uint32 Pix::h

height in pixels

Definition at line 141 of file pix.h.

Referenced by pixClearAll(), pixCreate(), pixCreateTemplate(), and pixGetDimensions().

◆ informat

l_int32 Pix::informat

input file format, IFF_*

Definition at line 150 of file pix.h.

◆ refcount

l_uint32 Pix::refcount

reference count (1 if no clones)

Definition at line 145 of file pix.h.

◆ special

l_int32 Pix::special

special instructions for I/O, etc

Definition at line 151 of file pix.h.

◆ spp

l_uint32 Pix::spp

number of samples per pixel

Definition at line 143 of file pix.h.

◆ text

char* Pix::text

text string associated with pix

Definition at line 152 of file pix.h.

Referenced by pixAddText(), pixGetText(), pixSetText(), pixSetTextCompNew(), and recogProcessLabeled().

◆ w

l_uint32 Pix::w

width in pixels

Definition at line 140 of file pix.h.

Referenced by pixGetDimensions().

◆ wpl

l_uint32 Pix::wpl

32-bit words/line

Definition at line 144 of file pix.h.

Referenced by pixClearAll(), pixCreate(), and pixCreateTemplate().

◆ xres

l_int32 Pix::xres

image res (ppi) in x direction (use 0 if unknown)

Definition at line 146 of file pix.h.

Referenced by pixaWriteStream(), pixGetResolution(), and pixSetResolution().

◆ yres

l_int32 Pix::yres

image res (ppi) in y direction (use 0 if unknown)

Definition at line 148 of file pix.h.

Referenced by pixaWriteStream(), pixGetResolution(), and pixSetResolution().


The documentation for this struct was generated from the following file: