Slicer  5.3
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
tilg_iso_3D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Extract Skeleton
4  Module: $HeadURL$
5  Language: C++
6  Date: $Date$
7  Version: $Revision$
8 
9  Copyright (c) Brigham and Women's Hospital (BWH) All Rights Reserved.
10 
11  See License.txt or http://www.slicer.org/copyright/copyright.txt for details.
12 
13 ==========================================================================*/
14 #ifndef _TILG_ISO_3D_H_
15 #define _TILG_ISO_3D_H_
16 
17 #define OBJ 1
18 #define BG 0
19 
20 int Env_Code_3_img(int loc[3], unsigned char *img, int dim[3]);
21 // returns the neighbor code including the center at position loc
22 
23 int Tilg_Test_3(int c, int d, int type);
24 
25 /* Calculation of Tilg-criterion, c is the Neighor-code of */
26 /* 3x3x3-Region, including the center */
27 // returns 0 if cannot be 'tilged'
28 // if type == 1 -> sheet preserving tilg
29 // if type == 0 -> full tilg
30 // d = for parrel tilg -> 0,1,2,3,4,5 N,S,E,W,T,D
31 
32 void tilg_iso_3D(int dx, int dy, int dz, unsigned char *data, unsigned char *res, int type);
33 
34 // 3D isotropic tilg-procedure that does a 3D thinning
35 // dx,dy,dz are the dimensions of the input (data) and output (res) image
36 // output image has to be allocated
37 // if type == 1 -> sheet preserving tilg
38 // if type == 0 -> full tilg
39 
40 #endif
int Tilg_Test_3(int c, int d, int type)
void tilg_iso_3D(int dx, int dy, int dz, unsigned char *data, unsigned char *res, int type)
int Env_Code_3_img(int loc[3], unsigned char *img, int dim[3])