JunkBox_Lib 1.10.1
|
グラフィックデータ定義 More...
Go to the source code of this file.
Functions | |
void | free_CmnHead (CmnHead *hd) |
void | init_CmnHead (CmnHead *hd) |
BSGraph | make_BSGraph (int xs, int ys, int zs) |
WSGraph | make_WSGraph (int xs, int ys, int zs) |
FSGraph | make_FSGraph (int xs, int ys, int zs) |
ISGraph | make_ISGraph (int xs, int ys, int zs) |
VSGraph | make_VSGraph (int xs, int ys, int zs) |
MSGraph | make_MSGraph (int xs, int ys, int zs, int depth) |
BSGraph * | new_BSGraph (int xs, int ys, int zs) |
WSGraph * | new_WSGraph (int xs, int ys, int zs) |
FSGraph * | new_FSGraph (int xs, int ys, int zs) |
ISGraph * | new_ISGraph (int xs, int ys, int zs) |
VSGraph * | new_VSGraph (int xs, int ys, int zs) |
MSGraph * | new_MSGraph (int xs, int ys, int zs, int depth) |
ISGraph | W2ISGraph (WSGraph vp) |
FSGraph | W2FSGraph (WSGraph vp) |
WSGraph | B2WSGraph (BSGraph vp) |
WSGraph | I2WSGraph (ISGraph vp) |
WSGraph | F2WSGraph (FSGraph vp) |
FSGraph | V2FSGraph (VSGraph vp) |
WSGraph | V2WSGraph (VSGraph vp) |
void | init_IRBound (IRBound *rb) |
void | init_DRBound (DRBound *rb) |
void | set_RZxy (double rzm) |
int | chk_RZxy (void) |
Variables | |
int | ZeroBase = 0 |
double | RZxy = 1.0 |
int | ChkRZxy = OFF |
uByte型単純グラフィックデータ(ISGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する int型単純グラフィックデータ |
Definition at line 649 of file gdata.c.
References BSGraph::gp, WSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, BSGraph::state, WSGraph::state, BSGraph::xs, WSGraph::xs, BSGraph::ys, WSGraph::ys, BSGraph::zs, and WSGraph::zs.
int chk_RZxy | ( | void | ) |
int chk_RZxy(void)
z軸のひずみを設定が設定されているかどうかをチェックする.
Definition at line 832 of file gdata.c.
References ChkRZxy, DEBUG_MODE, FALSE, OFF, PRINT_MESG, and TRUE.
Referenced by get_wdat(), set_wdat(), write_ct_file(), and write_file_rb().
double型単純グラフィックデータ(FSGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する double型単純グラフィックデータ |
Definition at line 711 of file gdata.c.
References WSGraph::gp, FSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, FSGraph::state, WSGraph::xs, FSGraph::xs, WSGraph::ys, FSGraph::ys, WSGraph::zs, and FSGraph::zs.
void free_CmnHead | ( | CmnHead * | hd | ) |
void free_CmnHead(CmnHead* hd)
共通ヘッダのメモリ領域を開放する.CmnHead.kind は HEADER_NONE になる. init_CmnHead()を内包している.
hd | 開放する共通ヘッダ |
Definition at line 27 of file gdata.c.
References CmnHead::buf, CmnHead::grptr, and init_CmnHead().
Referenced by read_cmn_file(), read_ct_data(), read_ras_data(), read_ras_file(), read_user_data(), and read_wsg_file().
int型単純グラフィックデータ(ISGraph)を sWord型単純グラフィック データ(WSGraph)に変換する.
vp | 変換する int型単純グラフィックデータ |
Definition at line 680 of file gdata.c.
References WSGraph::gp, ISGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, ISGraph::state, WSGraph::xs, ISGraph::xs, WSGraph::ys, ISGraph::ys, WSGraph::zs, and ISGraph::zs.
void init_CmnHead | ( | CmnHead * | hd | ) |
void init_CmnHead(CmnHead* hd)
共通ヘッダのメモリ領域を初期化する.CmnHead.kind は HEADER_NONE になる.
hd | 初期化する共通ヘッダ |
Definition at line 44 of file gdata.c.
References HEADER_NONE, and CmnHead::kind.
Referenced by free_CmnHead(), read_cmn_file(), read_cmn_header(), read_ct_data(), read_ras_data(), read_user_data(), read_xxx_file(), write_file_rb(), and write_ras_file().
void init_DRBound | ( | DRBound * | rb | ) |
void init_DRBound(DRBound* rb)
2D境界データ構造体を初期化する.
[out] | rb | 初期化する境界データ. |
Definition at line 802 of file gdata.c.
References DRBound::misc, OFF, DRBound::xmax, DRBound::xmin, DRBound::ymax, DRBound::ymin, DRBound::zmax, and DRBound::zmin.
void init_IRBound | ( | IRBound * | rb | ) |
void init_IRBound(IRBound* rb)
境界データ構造体を初期化する.
[out] | rb | 初期化する境界データ. |
Definition at line 787 of file gdata.c.
References IRBound::misc, OFF, SINTMAX, IRBound::xmax, IRBound::xmin, IRBound::ymax, IRBound::ymin, IRBound::zmax, and IRBound::zmin.
Referenced by cut_object().
BSGraph make_BSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
BSGraph make_BSGraph(int xs, int ys, int zs)
Byte型単純グラフィックデータ(BSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 66 of file gdata.c.
References BSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, BSGraph::state, BSGraph::xs, BSGraph::ys, and BSGraph::zs.
Referenced by jp2k_toBSGraph(), JPEGImage2BSGraph(), PNGImage2BSGraph(), and read_shape_main_file().
FSGraph make_FSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
FSGraph make_FSGraph(int xs, int ys, int zs)
double 型単純グラフィックデータ(FSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 150 of file gdata.c.
References FSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, FSGraph::state, FSGraph::xs, FSGraph::ys, and FSGraph::zs.
Referenced by fNabra(), fxSobel(), fxxSobel(), fySobel(), fyySobel(), fzSobel(), fzzSobel(), and V2FSGraph().
ISGraph make_ISGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
ISGraph make_ISGraph(int xs, int ys, int zs)
int型単純グラフィックデータ(ISGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 192 of file gdata.c.
References ISGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, ISGraph::state, ISGraph::xs, ISGraph::ys, and ISGraph::zs.
Referenced by euclid_distance().
MSGraph make_MSGraph | ( | int | xs, |
int | ys, | ||
int | zs, | ||
int | depth ) |
MSGraph make_MSGraph(int xs, int ys, int zs, int depth)
単純グラフィックデータ(MSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
depth | カラーデプス(bit) |
Definition at line 277 of file gdata.c.
References MSGraph::depth, MSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, MSGraph::state, MSGraph::xs, MSGraph::ys, and MSGraph::zs.
Referenced by proc_tiff_ifd().
VSGraph make_VSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
VSGraph make_VSGraph(int xs, int ys, int zs)
vector型単純グラフィックデータ(VSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 234 of file gdata.c.
References VSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, set_vector(), VSGraph::state, VSGraph::xs, VSGraph::ys, and VSGraph::zs.
Referenced by curvature(), curvature3D(), vfNabra(), and vNabra().
WSGraph make_WSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
WSGraph make_WSGraph(int xs, int ys, int zs)
sWord型単純グラフィックデータ(WSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 108 of file gdata.c.
References WSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, WSGraph::state, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
Referenced by circle3d(), curv2WSGraph(), cut_object(), edge_enhance(), euclid_distance(), grab_WSGraph(), imask(), JPEGImage2WSGraph(), Laplacian(), median(), Nabra(), PNGImage2WSGraph(), pool(), read_dicom_file(), to2d(), torus(), V2WSGraph(), x_reverse_wsg(), xSobel(), xxSobel(), ySobel(), yySobel(), zoom_WSGraph(), zSobel(), and zzSobel().
BSGraph * new_BSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
BSGraph* new_BSGraph(int xs, int ys, int zs)
Byte型単純グラフィックデータ(BSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 319 of file gdata.c.
References BSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, BSGraph::state, BSGraph::xs, BSGraph::ys, and BSGraph::zs.
FSGraph * new_FSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
FSGraph* new_FSGraph(int xs, int ys, int zs)
double 型単純グラフィックデータ(FSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 409 of file gdata.c.
References FSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, FSGraph::state, FSGraph::xs, FSGraph::ys, and FSGraph::zs.
ISGraph * new_ISGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
ISGraph* new_ISGraph(int xs, int ys, int zs)
int型単純グラフィックデータ(ISGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 454 of file gdata.c.
References ISGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, ISGraph::state, ISGraph::xs, ISGraph::ys, and ISGraph::zs.
MSGraph * new_MSGraph | ( | int | xs, |
int | ys, | ||
int | zs, | ||
int | depth ) |
MSGraph* new_MSGraph(int xs, int ys, int zs, int depth)
単純グラフィックデータ(MSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
depth | カラーデプス(bit) |
Definition at line 545 of file gdata.c.
References MSGraph::depth, MSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, MSGraph::state, MSGraph::xs, MSGraph::ys, and MSGraph::zs.
VSGraph * new_VSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
VSGraph* new_VSGraph(int xs, int ys, int zs)
vector型単純グラフィックデータ(VSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 499 of file gdata.c.
References VSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, set_vector(), VSGraph::state, VSGraph::xs, VSGraph::ys, and VSGraph::zs.
WSGraph * new_WSGraph | ( | int | xs, |
int | ys, | ||
int | zs ) |
WSGraph* new_WSGraph(int xs, int ys, int zs)
sWord型単純グラフィックデータ(WSGraph)のメモリ領域を確保する. グラフィックデータ部分は 0クリアされる.
xs | 確保するグラフィックデータの x方向のサイズ. |
ys | 確保するグラフィックデータの y方向のサイズ. |
zs | 確保するグラフィックデータの z方向のサイズ. |
Definition at line 364 of file gdata.c.
References WSGraph::gp, JBXL_GRAPH_IVDARG_ERROR, JBXL_GRAPH_MEMORY_ERROR, JBXL_NORMAL, WSGraph::state, WSGraph::xs, WSGraph::ys, and WSGraph::zs.
void set_RZxy | ( | double | rzm | ) |
void set_RZxy(double rzm)
z軸のひずみを設定する.デフォルトでは 1.0に設定されている. 設定を無効にするには void unset_RZxy(void) を使用する.
rzm | ひずみの値. |
Definition at line 818 of file gdata.c.
References ChkRZxy, ON, and RZxy.
Referenced by read_dicom_file(), read_wsg_file(), and read_wsg_file_rb().
vector型単純グラフィックデータ(VSGraph)を double型単純グラフィック データ(FSGraph)に変換する.
vp | 変換する vector型単純グラフィックデータ |
Definition at line 742 of file gdata.c.
References FSGraph::gp, VSGraph::gp, make_FSGraph(), vector::n, FSGraph::state, VSGraph::state, FSGraph::xs, VSGraph::xs, FSGraph::ys, VSGraph::ys, FSGraph::zs, and VSGraph::zs.
vector型単純グラフィックデータ(VSGraph)を sWord型単純グラフィックデータ(WSGraph)に変換する.
vp | 変換する vector型単純グラフィックデータ |
Definition at line 765 of file gdata.c.
References WSGraph::gp, VSGraph::gp, make_WSGraph(), vector::n, WSGraph::state, VSGraph::state, WSGraph::xs, VSGraph::xs, WSGraph::ys, VSGraph::ys, WSGraph::zs, and VSGraph::zs.
sWord型単純グラフィックデータ(WSGraph)を double型単純グラフィック データ(FSGraph)に変換する.
vp | 変換する sWord型単純グラフィックデータ |
Definition at line 618 of file gdata.c.
References WSGraph::gp, FSGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, FSGraph::state, WSGraph::xs, FSGraph::xs, WSGraph::ys, FSGraph::ys, WSGraph::zs, and FSGraph::zs.
Referenced by WSCurve().
sWord型単純グラフィックデータ(WSGraph)を int型単純グラフィック データ(ISGraph)に変換する.
vp | 変換する sWord型単純グラフィックデータ |
Definition at line 587 of file gdata.c.
References WSGraph::gp, ISGraph::gp, JBXL_GRAPH_MEMORY_ERROR, WSGraph::state, ISGraph::state, WSGraph::xs, ISGraph::xs, WSGraph::ys, ISGraph::ys, WSGraph::zs, and ISGraph::zs.
int ChkRZxy = OFF |
Definition at line 16 of file gdata.c.
Referenced by chk_RZxy(), and set_RZxy().
double RZxy = 1.0 |
Definition at line 15 of file gdata.c.
Referenced by get_wdat(), set_RZxy(), set_wdat(), sphere(), write_ct_file(), and write_file_rb().
int ZeroBase = 0 |
Definition at line 14 of file gdata.c.
Referenced by read_wsg_file(), read_wsg_file_rb(), write_ct_file(), and write_file_rb().