X-shooter Pipeline Reference Manual 3.8.15
Macros | Enumerations | Functions | Variables
Test 3d images handling functions

Macros

#define MODULE_ID   "XSH_DATA_IMAGE_3D"
 

Enumerations

enum  {
  DBG_OPT , HELP_OPT , NX_OPT , NY_OPT ,
  NZ_OPT
}
 

Functions

static int Help (void)
 
static void HandleOptions (int argc, char **argv)
 
static void fill_image (cpl_image *img, int first)
 
static int compare_img_3d (xsh_image_3d *one, xsh_image_3d *two)
 
int main (int argc, char **argv)
 

Variables

static const char * Options = "?"
 
static struct option LongOptions []
 
static int dbg_level = XSH_DEBUG_LEVEL_MEDIUM
 
static int Nx = 3
 
static int Ny =4
 
static int Nz = 3
 

Detailed Description

Macro Definition Documentation

◆ MODULE_ID

#define MODULE_ID   "XSH_DATA_IMAGE_3D"

Definition at line 56 of file test-xsh_data_image_3d.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
DBG_OPT 
HELP_OPT 
NX_OPT 
NY_OPT 
NZ_OPT 

Definition at line 58 of file test-xsh_data_image_3d.c.

Function Documentation

◆ compare_img_3d()

static int compare_img_3d ( xsh_image_3d one,
xsh_image_3d two 
)
static

Definition at line 140 of file test-xsh_data_image_3d.c.

References xsh_image_3d::nx, xsh_image_3d::ny, xsh_image_3d::nz, and xsh_msg.

Referenced by main().

◆ fill_image()

static void fill_image ( cpl_image *  img,
int  first 
)
static

Definition at line 122 of file test-xsh_data_image_3d.c.

References check, first, Nx, Ny, XSH_ASSURE_NOT_NULL, and xsh_msg.

Referenced by main().

◆ HandleOptions()

static void HandleOptions ( int  argc,
char **  argv 
)
static

◆ Help()

static int Help ( void  )
static

Definition at line 77 of file test-xsh_data_image_3d.c.

Referenced by HandleOptions().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ dbg_level

int dbg_level = XSH_DEBUG_LEVEL_MEDIUM
static

Definition at line 72 of file test-xsh_data_image_3d.c.

Referenced by HandleOptions().

◆ LongOptions

struct option LongOptions[]
static
Initial value:
= {
{"nx", required_argument, 0, NX_OPT},
{"ny", required_argument, 0, NY_OPT},
{"nz", required_argument, 0, NZ_OPT},
{"debug", required_argument, 0, DBG_OPT},
{"help", 0, 0, HELP_OPT },
{0, 0, 0, 0}
}

Definition at line 63 of file test-xsh_data_image_3d.c.

Referenced by HandleOptions().

◆ Nx

int Nx = 3
static

Definition at line 73 of file test-xsh_data_image_3d.c.

Referenced by fill_image(), HandleOptions(), and main().

◆ Ny

int Ny =4
static

Definition at line 73 of file test-xsh_data_image_3d.c.

Referenced by fill_image(), HandleOptions(), and main().

◆ Nz

int Nz = 3
static

Definition at line 73 of file test-xsh_data_image_3d.c.

Referenced by HandleOptions(), and main().

◆ Options

const char* Options = "?"
static

Definition at line 62 of file test-xsh_data_image_3d.c.

Referenced by HandleOptions().