plastimatch
Loading...
Searching...
No Matches
rasterizer.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _rasterizer_h_
5#define _rasterizer_h_
6
7#include "plmbase_config.h"
8
9#include "itk_image_type.h"
10
11class Rtss;
13
15 public:
16 Rasterizer ();
17 ~Rasterizer ();
18 public:
22
23 /* The default behavior is to "or" overlapping contours. Set
24 this member to true if you want to "xor" instead */
26
27
28 Plm_image_header *pih; /* Not owned by rasterizer */
29#if defined (commentout)
30 float origin[3];
31 float spacing[3];
32 plm_long dim[3];
33#endif
34
35 unsigned char* acc_img;
38
41
44
45 public:
46 void rasterize (
47 Rtss *cxt,
49 bool want_prefix_imgs,
50 bool want_labelmap,
51 bool want_ss_img,
52 bool use_ss_img_vec,
53 bool xor_overlapping
54 );
55 private:
56 void init (
57 Rtss *cxt, /* Input */
58 Plm_image_header *pih, /* Input */
59 bool want_prefix_imgs, /* Input */
60 bool want_labelmap, /* Input */
61 bool want_ss_img, /* Input */
62 bool use_ss_img_vec, /* Input */
63 bool xor_overlapping /* Input */
64 );
65 bool process_next (
66 Rtss *cxt /* In/out */
67 );
68 const char* current_name (
69 Rtss *cxt
70 );
71};
72
73#endif
The Plm_image_header class defines the geometry of an image. It defines image origin,...
Definition plm_image_header.h:24
The Plm_image class represents a three-dimensional volume. The volume is an abstraction that can co...
Definition plm_image.h:27
Definition rasterizer.h:14
Volume * labelmap_vol
Definition rasterizer.h:37
bool want_labelmap
Definition rasterizer.h:20
bool xor_overlapping
Definition rasterizer.h:25
bool want_ss_img
Definition rasterizer.h:21
Plm_image_header * pih
Definition rasterizer.h:28
unsigned char * acc_img
Definition rasterizer.h:35
int curr_bit
Definition rasterizer.h:43
bool want_prefix_imgs
Definition rasterizer.h:19
bool m_use_ss_img_vec
Definition rasterizer.h:40
Volume * uchar_vol
Definition rasterizer.h:36
size_t curr_struct_no
Definition rasterizer.h:42
Plm_image * m_ss_img
Definition rasterizer.h:39
The Rtss class represents a set of segmentations in polyline format, analogous to the DICOM-RT RTSTRU...
Definition rtss.h:25
The Volume class represents a three-dimensional volume on a uniform grid. The volume can be located a...
Definition volume.h:38
#define PLMBASE_API
Definition plmbase_config.h:19