Leptonica  1.83.1
Image processing and image analysis suite
L_WShed Struct Reference

#include <watershed.h>

Data Fields

struct Pixpixs
 
struct Pixpixm
 
l_int32 mindepth
 
struct Pixpixlab
 
struct Pixpixt
 
void ** lines8
 
void ** linem1
 
void ** linelab32
 
void ** linet1
 
struct Pixapixad
 
struct Ptaptas
 
struct Numanasi
 
struct Numanash
 
struct Numanamh
 
struct Numanalevels
 
l_int32 nseeds
 
l_int32 nother
 
l_int32 * lut
 
struct Numa ** links
 
l_int32 arraysize
 
l_int32 debug
 

Detailed Description

Simple data structure to hold watershed data.

Definition at line 38 of file watershed.h.

Field Documentation

◆ arraysize

l_int32 L_WShed::arraysize

size of links array

Definition at line 59 of file watershed.h.

Referenced by mergeLookup(), and wshedDestroy().

◆ debug

l_int32 L_WShed::debug

set to 1 for debug output

Definition at line 60 of file watershed.h.

◆ linelab32

void** L_WShed::linelab32

line ptrs for pixlab

Definition at line 47 of file watershed.h.

Referenced by identifyWatershedBasin(), wshedApply(), and wshedDestroy().

◆ linem1

void** L_WShed::linem1

line ptrs for pixm

Definition at line 46 of file watershed.h.

Referenced by wshedDestroy().

◆ lines8

void** L_WShed::lines8

line ptrs for pixs

Definition at line 45 of file watershed.h.

Referenced by identifyWatershedBasin(), wshedApply(), and wshedDestroy().

◆ linet1

void** L_WShed::linet1

line ptrs for pixt

Definition at line 48 of file watershed.h.

Referenced by identifyWatershedBasin(), and wshedDestroy().

◆ links

struct Numa** L_WShed::links

back-links into lut, for updates

Definition at line 58 of file watershed.h.

Referenced by mergeLookup(), and wshedDestroy().

◆ lut

l_int32* L_WShed::lut

lut for pixel indices

Definition at line 57 of file watershed.h.

Referenced by identifyWatershedBasin(), mergeLookup(), and wshedDestroy().

◆ mindepth

l_int32 L_WShed::mindepth

minimum depth allowed for a watershed

Definition at line 42 of file watershed.h.

◆ nalevels

struct Numa* L_WShed::nalevels

result: numa of watershed levels

Definition at line 54 of file watershed.h.

Referenced by wshedBasins(), wshedDestroy(), and wshedSaveBasin().

◆ namh

struct Numa* L_WShed::namh

numa of initial minima heights

Definition at line 53 of file watershed.h.

Referenced by wshedDestroy(), and wshedGetHeight().

◆ nash

struct Numa* L_WShed::nash

numa of initial seed heights

Definition at line 52 of file watershed.h.

Referenced by wshedDestroy(), and wshedGetHeight().

◆ nasi

struct Numa* L_WShed::nasi

numa of seed indicators; 0 if completed

Definition at line 51 of file watershed.h.

Referenced by wshedDestroy().

◆ nother

l_int32 L_WShed::nother

number of minima different from seeds

Definition at line 56 of file watershed.h.

Referenced by wshedGetHeight().

◆ nseeds

l_int32 L_WShed::nseeds

number of seeds (markers)

Definition at line 55 of file watershed.h.

◆ pixad

struct Pixa* L_WShed::pixad

result: 1 bpp pixa of watersheds

Definition at line 49 of file watershed.h.

Referenced by wshedBasins(), wshedDestroy(), and wshedSaveBasin().

◆ pixlab

struct Pix* L_WShed::pixlab

16 bpp label pix

Definition at line 43 of file watershed.h.

Referenced by wshedDestroy().

◆ pixm

struct Pix* L_WShed::pixm

clone of input 1 bpp seed (marker) pixm

Definition at line 41 of file watershed.h.

Referenced by wshedApply(), and wshedDestroy().

◆ pixs

struct Pix* L_WShed::pixs

clone of input 8 bpp pixs

Definition at line 40 of file watershed.h.

Referenced by identifyWatershedBasin(), wshedApply(), wshedDestroy(), wshedRenderColors(), and wshedRenderFill().

◆ pixt

struct Pix* L_WShed::pixt

scratch pix for computing wshed regions

Definition at line 44 of file watershed.h.

Referenced by identifyWatershedBasin(), and wshedDestroy().

◆ ptas

struct Pta* L_WShed::ptas

pta of initial seed pixels

Definition at line 50 of file watershed.h.

Referenced by identifyWatershedBasin(), and wshedDestroy().


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