AMITK Reference Manual | ||||
---|---|---|---|---|
Top | Description |
#define AMITK_DATA_SET_MODALITY (ds) #define AMITK_DATA_SET_VOXEL_SIZE (ds) #define AMITK_DATA_SET_VOXEL_SIZE_X (ds) #define AMITK_DATA_SET_VOXEL_SIZE_Y (ds) #define AMITK_DATA_SET_VOXEL_SIZE_Z (ds) #define AMITK_DATA_SET_VOXEL_VOLUME (ds) #define AMITK_DATA_SET_RAW_DATA (ds) #define AMITK_DATA_SET_DIM (ds) #define AMITK_DATA_SET_DIM_X (ds) #define AMITK_DATA_SET_DIM_Y (ds) #define AMITK_DATA_SET_DIM_Z (ds) #define AMITK_DATA_SET_DIM_G (ds) #define AMITK_DATA_SET_DIM_T (ds) #define AMITK_DATA_SET_FORMAT (ds) #define AMITK_DATA_SET_NUM_GATES (ds) #define AMITK_DATA_SET_NUM_FRAMES (ds) #define AMITK_DATA_SET_TOTAL_PLANES (ds) #define AMITK_DATA_SET_DISTRIBUTION (ds) #define AMITK_DATA_SET_COLOR_TABLE (ds, view_mode) #define AMITK_DATA_SET_COLOR_TABLE_INDEPENDENT(ds, view_mode) #define AMITK_DATA_SET_INTERPOLATION (ds) #define AMITK_DATA_SET_DYNAMIC (ds) #define AMITK_DATA_SET_GATED (ds) #define AMITK_DATA_SET_THRESHOLDING (ds) #define AMITK_DATA_SET_THRESHOLD_STYLE (ds) #define AMITK_DATA_SET_SLICE_PARENT (ds) #define AMITK_DATA_SET_SCAN_DATE (ds) #define AMITK_DATA_SET_SUBJECT_NAME (ds) #define AMITK_DATA_SET_SUBJECT_ID (ds) #define AMITK_DATA_SET_SUBJECT_DOB (ds) #define AMITK_DATA_SET_SCAN_START (ds) #define AMITK_DATA_SET_THRESHOLD_REF_FRAME (ds,ref_frame) #define AMITK_DATA_SET_THRESHOLD_MAX (ds, ref_frame) #define AMITK_DATA_SET_THRESHOLD_MIN (ds, ref_frame) #define AMITK_DATA_SET_SCALING_TYPE (ds) #define AMITK_DATA_SET_SCALING_HAS_INTERCEPT(ds) #define AMITK_DATA_SET_SUBJECT_ORIENTATION (ds) #define AMITK_DATA_SET_CONVERSION (ds) #define AMITK_DATA_SET_SCALE_FACTOR (ds) #define AMITK_DATA_SET_INJECTED_DOSE (ds) #define AMITK_DATA_SET_DISPLAYED_DOSE_UNIT (ds) #define AMITK_DATA_SET_SUBJECT_WEIGHT (ds) #define AMITK_DATA_SET_DISPLAYED_WEIGHT_UNIT(ds) #define AMITK_DATA_SET_CYLINDER_FACTOR (ds) #define AMITK_DATA_SET_DISPLAYED_CYLINDER_UNIT(ds) #define AMITK_DATA_SET_THRESHOLD_WINDOW (ds, i_win, limit) #define AMITK_DATA_SET_VIEW_START_GATE (ds) #define AMITK_DATA_SET_VIEW_END_GATE (ds) #define AMITK_DATA_SET_NUM_VIEW_GATES (ds) #define AMITK_DATA_SET_DISTRIBUTION_SIZE enum AmitkOperation; enum AmitkInterpolation; enum AmitkThresholding; enum AmitkScalingType; enum AmitkConversion; enum AmitkWeightUnit; enum AmitkDoseUnit; enum AmitkCylinderUnit; enum AmitkSubjectOrientation; enum AmitkImportMethod; enum AmitkExportMethod; AmitkDataSet; AmitkDataSet * amitk_data_set_new (AmitkPreferences *preferences, const AmitkModality modality); AmitkDataSet * amitk_data_set_new_with_data (AmitkPreferences *preferences, const AmitkModality modality, const AmitkFormat format, const AmitkVoxel dim, const AmitkScalingType scaling_type); AmitkDataSet * amitk_data_set_import_raw_file (const gchar *file_name, const AmitkRawFormat raw_format, const AmitkVoxel data_dim, guint file_offset, AmitkPreferences *preferences, const AmitkModality modality, const gchar *data_set_name, const AmitkPoint voxel_size, const amide_data_t scale_factor, AmitkUpdateFunc update_func, gpointer update_data); GList * amitk_data_set_import_file (AmitkImportMethod method, int submethod, const gchar *filename, AmitkPreferences *preferences, AmitkUpdateFunc update_func, gpointer update_data); void amitk_data_set_export_to_file (AmitkDataSet *ds, const AmitkExportMethod method, const int submethod, const gchar *filename, const gboolean resliced, const AmitkPoint voxel_size, const AmitkVolume *bounding_box, AmitkUpdateFunc update_func, gpointer update_data); void amitk_data_sets_export_to_file (GList *data_sets, const AmitkExportMethod method, const int submethod, const gchar *filename, const AmitkPoint voxel_size, const AmitkVolume *bounding_box, AmitkUpdateFunc update_func, gpointer update_data); amide_data_t amitk_data_set_get_global_max (AmitkDataSet *ds); amide_data_t amitk_data_set_get_global_min (AmitkDataSet *ds); amide_data_t amitk_data_set_get_frame_max (AmitkDataSet *ds, const guint frame); amide_data_t amitk_data_set_get_frame_min (AmitkDataSet *ds, const guint frame); AmitkColorTable amitk_data_set_get_color_table_to_use (AmitkDataSet *ds, const AmitkViewMode view_mode); void amitk_data_set_set_modality (AmitkDataSet *ds, const AmitkModality modality); void amitk_data_set_set_scan_start (AmitkDataSet *ds, const amide_time_t start); void amitk_data_set_set_frame_duration (AmitkDataSet *ds, const guint frame, amide_time_t duration); void amitk_data_set_set_voxel_size (AmitkDataSet *ds, const AmitkPoint voxel_size); void amitk_data_set_set_thresholding (AmitkDataSet *ds, const AmitkThresholding thresholding); void amitk_data_set_set_threshold_style (AmitkDataSet *ds, const AmitkThresholdStyle threshold_style); void amitk_data_set_set_threshold_max (AmitkDataSet *ds, guint which_reference, amide_data_t value); void amitk_data_set_set_threshold_min (AmitkDataSet *ds, guint which_reference, amide_data_t value); void amitk_data_set_set_threshold_ref_frame (AmitkDataSet *ds, guint which_reference, guint frame); void amitk_data_set_set_color_table (AmitkDataSet *ds, const AmitkViewMode view_mode, const AmitkColorTable new_color_table); void amitk_data_set_set_color_table_independent (AmitkDataSet *ds, const AmitkViewMode view_mode, const gboolean independent); void amitk_data_set_set_interpolation (AmitkDataSet *ds, const AmitkInterpolation new_interpolation); void amitk_data_set_set_subject_orientation (AmitkDataSet *ds, const AmitkSubjectOrientation subject_orientation); void amitk_data_set_set_scan_date (AmitkDataSet *ds, const gchar *new_date); void amitk_data_set_set_subject_name (AmitkDataSet *ds, const gchar *new_name); void amitk_data_set_set_subject_id (AmitkDataSet *ds, const gchar *new_id); void amitk_data_set_set_subject_dob (AmitkDataSet *ds, const gchar *new_dob); void amitk_data_set_set_conversion (AmitkDataSet *ds, AmitkConversion new_conversion); void amitk_data_set_set_scale_factor (AmitkDataSet *ds, amide_data_t new_scale_factor); void amitk_data_set_set_injected_dose (AmitkDataSet *ds, amide_data_t new_injected_dose); void amitk_data_set_set_subject_weight (AmitkDataSet *ds, amide_data_t new_subject_weight); void amitk_data_set_set_cylinder_factor (AmitkDataSet *ds, amide_data_t new_cylinder_factor); void amitk_data_set_set_displayed_dose_unit (AmitkDataSet *ds, AmitkDoseUnit new_dose_unit); void amitk_data_set_set_displayed_weight_unit (AmitkDataSet *ds, AmitkWeightUnit new_weight_unit); void amitk_data_set_set_displayed_cylinder_unit (AmitkDataSet *ds, AmitkCylinderUnit new_cylinder_unit); void amitk_data_set_set_threshold_window (AmitkDataSet *ds, const AmitkWindow window, const AmitkLimit limit, const amide_data_t value); void amitk_data_set_set_view_start_gate (AmitkDataSet *ds, amide_intpoint_t start_gate); void amitk_data_set_set_view_end_gate (AmitkDataSet *ds, amide_intpoint_t end_gate); amide_time_t amitk_data_set_get_start_time (const AmitkDataSet *ds, const guint frame); amide_time_t amitk_data_set_get_end_time (const AmitkDataSet *ds, const guint frame); amide_time_t amitk_data_set_get_midpt_time (const AmitkDataSet *ds, const guint frame); guint amitk_data_set_get_frame (const AmitkDataSet *ds, const amide_time_t time); amide_time_t amitk_data_set_get_frame_duration (const AmitkDataSet *ds, guint frame); amide_time_t amitk_data_set_get_min_frame_duration (const AmitkDataSet *ds); void amitk_data_set_calc_far_corner (AmitkDataSet *ds); void amitk_data_set_calc_max_min (AmitkDataSet *ds, AmitkUpdateFunc update_func, gpointer update_data); amide_data_t amitk_data_set_get_max (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration); amide_data_t amitk_data_set_get_min (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration); void amitk_data_set_get_thresholding_max_min (AmitkDataSet *ds, AmitkDataSet *slice, const amide_time_t start, const amide_time_t duration, amide_data_t *max, amide_data_t *min); void amitk_data_set_calc_distribution (AmitkDataSet *ds, AmitkUpdateFunc update_func, gpointer update_data); amide_data_t amitk_data_set_get_internal_value (const AmitkDataSet *ds, const AmitkVoxel i); amide_data_t amitk_data_set_get_value (const AmitkDataSet *ds, const AmitkVoxel i); amide_data_t amitk_data_set_get_internal_scaling_factor (const AmitkDataSet *ds, const AmitkVoxel i); amide_data_t amitk_data_set_get_scaling_factor (const AmitkDataSet *ds, const AmitkVoxel i); amide_data_t amitk_data_set_get_scaling_intercept (const AmitkDataSet *ds, const AmitkVoxel i); void amitk_data_set_set_value (AmitkDataSet *ds, const AmitkVoxel i, const amide_data_t value, const gboolean signal_change); void amitk_data_set_set_internal_value (AmitkDataSet *ds, const AmitkVoxel i, const amide_data_t internal_value, const gboolean signal_change); void amitk_data_set_get_projections (AmitkDataSet *ds, const guint frame, const guint gate, AmitkDataSet **projections, AmitkUpdateFunc update_func, gpointer update_data); AmitkDataSet * amitk_data_set_get_cropped (const AmitkDataSet *ds, const AmitkVoxel start, const AmitkVoxel end, const AmitkFormat format, const AmitkScalingType scaling_type, AmitkUpdateFunc update_func, gpointer update_data); AmitkDataSet * amitk_data_set_get_filtered (const AmitkDataSet *ds, const AmitkFilter filter_type, const gint kernel_size, const amide_real_t fwhm, AmitkUpdateFunc update_func, gpointer update_data); AmitkDataSet * amitk_data_set_get_slice (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration, const amide_intpoint_t gate, const AmitkCanvasPoint pixel_size, const AmitkVolume *slice_volume); void amitk_data_set_get_line_profile (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration, const AmitkPoint start_point, const AmitkPoint end_point, GPtrArray **preturn_data); gint amitk_data_sets_count (GList *objects, gboolean recurse); amide_time_t amitk_data_sets_get_min_frame_duration (GList *objects); amide_real_t amitk_data_sets_get_min_voxel_size (GList *objects); amide_real_t amitk_data_sets_get_max_min_voxel_size (GList *objects); GList * amitk_data_sets_get_slices (GList *objects, GList **pslice_cache, const gint max_slice_cache_size, const amide_time_t start, const amide_time_t duration, const amide_intpoint_t gate, const AmitkCanvasPoint pixel_size, const AmitkVolume *view_volume); AmitkDataSet * amitk_data_sets_find_with_slice_parent (GList *slices, const AmitkDataSet *slice_parent); GList * amitk_data_sets_remove_with_slice_parent (GList *slices, const AmitkDataSet *slice_parent); AmitkDataSet * amitk_data_sets_math (AmitkDataSet *ds1, AmitkDataSet *ds2, AmitkOperation operation, gboolean by_frame, AmitkUpdateFunc update_func, gpointer update_data); #define amitk_data_set_get_frame_duration_mem(ds) #define amitk_data_set_get_frame_max_min_mem(ds) #define amitk_data_set_dynamic (ds) const gchar * amitk_scaling_type_get_name (const AmitkScalingType scaling_type); const gchar * amitk_operation_get_name (const AmitkOperation operation); const gchar * amitk_interpolation_get_name (const AmitkInterpolation interpolation); const gchar * amitk_subject_orientation_get_name (const AmitkSubjectOrientation subject_orientation); const gchar * amitk_thresholding_get_name (const AmitkThresholding thresholding); const gchar * amitk_threshold_style_get_name (const AmitkThresholdStyle threshold_style); const gchar * amitk_conversion_get_name (const AmitkConversion conversion); const gchar * amitk_weight_unit_get_name (const AmitkWeightUnit weight_unit); const gchar * amitk_dose_unit_get_name (const AmitkDoseUnit dose_unit); const gchar * amitk_cylinder_unit_get_name (const AmitkCylinderUnit cylinder_unit); amide_data_t amitk_weight_unit_convert_to (const amide_data_t kg, const AmitkWeightUnit weight_unit); amide_data_t amitk_weight_unit_convert_from (const amide_data_t weight, const AmitkWeightUnit weight_unit); amide_data_t amitk_dose_unit_convert_to (const amide_data_t MBq, const AmitkDoseUnit dose_unit); amide_data_t amitk_dose_unit_convert_from (const amide_data_t dose, const AmitkDoseUnit dose_unit); amide_data_t amitk_cylinder_unit_convert_to (const amide_data_t MBq_cc_image_units, const AmitkCylinderUnit cylinder_unit); amide_data_t amitk_cylinder_unit_convert_from (const amide_data_t cylinder_factor, const AmitkCylinderUnit cylinder_unit);
#define AMITK_DATA_SET_VOXEL_SIZE(ds) (AMITK_DATA_SET(ds)->voxel_size)
|
#define AMITK_DATA_SET_VOXEL_SIZE_X(ds) (AMITK_DATA_SET(ds)->voxel_size.x)
|
#define AMITK_DATA_SET_VOXEL_SIZE_Y(ds) (AMITK_DATA_SET(ds)->voxel_size.y)
|
#define AMITK_DATA_SET_VOXEL_SIZE_Z(ds) (AMITK_DATA_SET(ds)->voxel_size.z)
|
#define AMITK_DATA_SET_VOXEL_VOLUME(ds) (AMITK_DATA_SET(ds)->voxel_size.z*AMITK_DATA_SET(ds)->voxel_size.y*AMITK_DATA_SET(ds)->voxel_size.x)
|
#define AMITK_DATA_SET_DIM(ds) (AMITK_RAW_DATA_DIM(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_DIM_X(ds) (AMITK_RAW_DATA_DIM_X(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_DIM_Y(ds) (AMITK_RAW_DATA_DIM_Y(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_DIM_Z(ds) (AMITK_RAW_DATA_DIM_Z(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_DIM_G(ds) (AMITK_RAW_DATA_DIM_G(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_DIM_T(ds) (AMITK_RAW_DATA_DIM_T(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_FORMAT(ds) (AMITK_RAW_DATA_FORMAT(AMITK_DATA_SET_RAW_DATA(ds)))
|
#define AMITK_DATA_SET_TOTAL_PLANES(ds) (AMITK_DATA_SET_DIM_Z(ds)*AMITK_DATA_SET_DIM_G(ds)*AMITK_DATA_SET_DIM_T(ds))
|
#define AMITK_DATA_SET_DISTRIBUTION(ds) (AMITK_DATA_SET(ds)->distribution)
|
#define AMITK_DATA_SET_COLOR_TABLE(ds, view_mode) (AMITK_DATA_SET(ds)->color_table[view_mode])
|
|
|
#define AMITK_DATA_SET_COLOR_TABLE_INDEPENDENT(ds, view_mode) (AMITK_DATA_SET(ds)->color_table_independent[view_mode])
|
|
|
#define AMITK_DATA_SET_INTERPOLATION(ds) (AMITK_DATA_SET(ds)->interpolation)
|
#define AMITK_DATA_SET_DYNAMIC(ds) (AMITK_DATA_SET_NUM_FRAMES(ds) > 1)
|
#define AMITK_DATA_SET_THRESHOLDING(ds) (AMITK_DATA_SET(ds)->thresholding)
|
#define AMITK_DATA_SET_THRESHOLD_STYLE(ds) (AMITK_DATA_SET(ds)->threshold_style)
|
#define AMITK_DATA_SET_SLICE_PARENT(ds) (AMITK_DATA_SET(ds)->slice_parent)
|
#define AMITK_DATA_SET_SCAN_DATE(ds) (AMITK_DATA_SET(ds)->scan_date)
|
#define AMITK_DATA_SET_SUBJECT_NAME(ds) (AMITK_DATA_SET(ds)->subject_name)
|
#define AMITK_DATA_SET_SUBJECT_ID(ds) (AMITK_DATA_SET(ds)->subject_id)
|
#define AMITK_DATA_SET_SUBJECT_DOB(ds) (AMITK_DATA_SET(ds)->subject_dob)
|
#define AMITK_DATA_SET_SCAN_START(ds) (AMITK_DATA_SET(ds)->scan_start)
|
#define AMITK_DATA_SET_THRESHOLD_REF_FRAME(ds,ref_frame) (AMITK_DATA_SET(ds)->threshold_ref_frame[ref_frame])
|
|
|
#define AMITK_DATA_SET_THRESHOLD_MAX(ds, ref_frame) (AMITK_DATA_SET(ds)->threshold_max[ref_frame])
|
|
|
#define AMITK_DATA_SET_THRESHOLD_MIN(ds, ref_frame) (AMITK_DATA_SET(ds)->threshold_min[ref_frame])
|
|
|
#define AMITK_DATA_SET_SCALING_TYPE(ds) (AMITK_DATA_SET(ds)->scaling_type)
|
#define AMITK_DATA_SET_SCALING_HAS_INTERCEPT(ds) ((AMITK_DATA_SET(ds)->scaling_type == AMITK_SCALING_TYPE_0D_WITH_INTERCEPT) || (AMITK_DATA_SET(ds)->scaling_type == AMITK_SCALING_TYPE_1D_WITH_INTERCEPT) || (AMITK_DATA_SET(ds)->scaling_type == AMITK_SCALING_TYPE_2D_WITH_INTERCEPT))
|
#define AMITK_DATA_SET_SUBJECT_ORIENTATION(ds) (AMITK_DATA_SET(ds)->subject_orientation)
|
#define AMITK_DATA_SET_CONVERSION(ds) (AMITK_DATA_SET(ds)->conversion)
|
#define AMITK_DATA_SET_SCALE_FACTOR(ds) (AMITK_DATA_SET(ds)->scale_factor)
|
#define AMITK_DATA_SET_INJECTED_DOSE(ds) (AMITK_DATA_SET(ds)->injected_dose)
|
#define AMITK_DATA_SET_DISPLAYED_DOSE_UNIT(ds) (AMITK_DATA_SET(ds)->displayed_dose_unit)
|
#define AMITK_DATA_SET_SUBJECT_WEIGHT(ds) (AMITK_DATA_SET(ds)->subject_weight)
|
#define AMITK_DATA_SET_DISPLAYED_WEIGHT_UNIT(ds) (AMITK_DATA_SET(ds)->displayed_weight_unit)
|
#define AMITK_DATA_SET_CYLINDER_FACTOR(ds) (AMITK_DATA_SET(ds)->cylinder_factor)
|
#define AMITK_DATA_SET_DISPLAYED_CYLINDER_UNIT(ds) (AMITK_DATA_SET(ds)->displayed_cylinder_unit)
|
#define AMITK_DATA_SET_THRESHOLD_WINDOW(ds, i_win, limit) (AMITK_DATA_SET(ds)->threshold_window[i_win][limit])
|
|
|
|
|
#define AMITK_DATA_SET_VIEW_START_GATE(ds) (AMITK_DATA_SET(ds)->view_start_gate)
|
#define AMITK_DATA_SET_VIEW_END_GATE(ds) (AMITK_DATA_SET(ds)->view_end_gate)
|
#define AMITK_DATA_SET_NUM_VIEW_GATES(ds) (AMITK_DATA_SET(ds)->num_view_gates)
|
typedef enum { AMITK_OPERATION_ADD, AMITK_OPERATION_SUB, AMITK_OPERATION_NUM } AmitkOperation;
typedef enum { AMITK_INTERPOLATION_NEAREST_NEIGHBOR, AMITK_INTERPOLATION_TRILINEAR, AMITK_INTERPOLATION_NUM } AmitkInterpolation;
typedef enum { AMITK_THRESHOLDING_PER_SLICE, AMITK_THRESHOLDING_PER_FRAME, AMITK_THRESHOLDING_INTERPOLATE_FRAMES, AMITK_THRESHOLDING_GLOBAL, AMITK_THRESHOLDING_NUM } AmitkThresholding;
typedef enum { AMITK_SCALING_TYPE_0D, AMITK_SCALING_TYPE_1D, AMITK_SCALING_TYPE_2D, AMITK_SCALING_TYPE_0D_WITH_INTERCEPT, AMITK_SCALING_TYPE_1D_WITH_INTERCEPT, AMITK_SCALING_TYPE_2D_WITH_INTERCEPT, AMITK_SCALING_TYPE_NUM } AmitkScalingType;
typedef enum { AMITK_CONVERSION_STRAIGHT, AMITK_CONVERSION_PERCENT_ID_PER_CC, AMITK_CONVERSION_SUV, AMITK_CONVERSION_NUM } AmitkConversion;
typedef enum { AMITK_WEIGHT_UNIT_KILOGRAM, AMITK_WEIGHT_UNIT_GRAM, AMITK_WEIGHT_UNIT_POUND, AMITK_WEIGHT_UNIT_OUNCE, AMITK_WEIGHT_UNIT_NUM } AmitkWeightUnit;
typedef enum { AMITK_DOSE_UNIT_MEGABECQUEREL, AMITK_DOSE_UNIT_MILLICURIE, AMITK_DOSE_UNIT_MICROCURIE, AMITK_DOSE_UNIT_NANOCURIE, AMITK_DOSE_UNIT_NUM } AmitkDoseUnit;
typedef enum { AMITK_CYLINDER_UNIT_MEGABECQUEREL_PER_CC_IMAGE_UNIT, AMITK_CYLINDER_UNIT_MILLICURIE_PER_CC_IMAGE_UNIT, AMITK_CYLINDER_UNIT_MICROCURIE_PER_CC_IMAGE_UNIT, AMITK_CYLINDER_UNIT_NANOCURIE_PER_CC_IMAGE_UNIT, AMITK_CYLINDER_UNIT_IMAGE_UNIT_CC_PER_MEGABECQUEREL, AMITK_CYLINDER_UNIT_IMAGE_UNIT_CC_PER_MILLICURIE, AMITK_CYLINDER_UNIT_IMAGE_UNIT_CC_PER_MICROCURIE, AMITK_CYLINDER_UNIT_IMAGE_UNIT_CC_PER_NANOCURIE, AMITK_CYLINDER_UNIT_NUM } AmitkCylinderUnit;
typedef enum { AMITK_SUBJECT_ORIENTATION_UNKNOWN, AMITK_SUBJECT_ORIENTATION_SUPINE_HEADFIRST, AMITK_SUBJECT_ORIENTATION_SUPINE_FEETFIRST, AMITK_SUBJECT_ORIENTATION_PRONE_HEADFIRST, AMITK_SUBJECT_ORIENTATION_PRONE_FEETFIRST, AMITK_SUBJECT_ORIENTATION_RIGHT_DECUBITUS_HEADFIRST, AMITK_SUBJECT_ORIENTATION_RIGHT_DECUBITUS_FEETFIRST, AMITK_SUBJECT_ORIENTATION_LEFT_DECUBITUS_HEADFIRST, AMITK_SUBJECT_ORIENTATION_LEFT_DECUBITUS_FEETFIRST, AMITK_SUBJECT_ORIENTATION_NUM } AmitkSubjectOrientation;
typedef enum { /*< skip >*/ AMITK_IMPORT_METHOD_GUESS, AMITK_IMPORT_METHOD_RAW, #ifdef AMIDE_LIBDCMDATA_SUPPORT AMITK_IMPORT_METHOD_DCMTK, #endif #ifdef AMIDE_LIBECAT_SUPPORT AMITK_IMPORT_METHOD_LIBECAT, #endif #ifdef AMIDE_LIBMDC_SUPPORT AMITK_IMPORT_METHOD_LIBMDC, #endif AMITK_IMPORT_METHOD_NUM } AmitkImportMethod;
typedef enum { /*< skip >*/ AMITK_EXPORT_METHOD_RAW, #ifdef AMIDE_LIBDCMDATA_SUPPORT AMITK_EXPORT_METHOD_DCMTK, #endif #ifdef AMIDE_LIBMDC_SUPPORT AMITK_EXPORT_METHOD_LIBMDC, #endif AMITK_EXPORT_METHOD_NUM } AmitkExportMethod;
typedef struct { AmitkVolume parent; /* parameters that are saved */ gchar * scan_date; /* the time/day the image was acquired */ gchar * subject_name; /* name of the subject */ gchar * subject_id; /* id of the subject */ gchar * subject_dob; /* date of birth of the subject */ AmitkModality modality; AmitkPoint voxel_size; /* in mm */ AmitkRawData * raw_data; AmitkScalingType scaling_type; /* dimensions of internal scaling */ AmitkRawData * internal_scaling_factor; /* internally (data set) supplied scaling factor */ AmitkRawData * internal_scaling_intercept; /* internally (data set) supplied scaling intercept */ amide_time_t scan_start; amide_time_t * frame_duration; /* array of the duration of each frame */ AmitkColorTable color_table[AMITK_VIEW_MODE_NUM]; /* the color table to draw this volume in */ gboolean color_table_independent[AMITK_VIEW_MODE_NUM]; /* whether to use the independent color tables for 2-way or 3-way linked modes*/ AmitkInterpolation interpolation; AmitkSubjectOrientation subject_orientation; /* orientation of subject in scanner */ amide_data_t scale_factor; /* user specified factor to multiply data set by */ AmitkConversion conversion; amide_data_t injected_dose; /* in MBq */ AmitkDoseUnit displayed_dose_unit; amide_data_t subject_weight; /* in KG */ AmitkWeightUnit displayed_weight_unit; amide_data_t cylinder_factor; /* (MBq/cc)/Image Unit */ AmitkCylinderUnit displayed_cylinder_unit; AmitkThresholding thresholding; /* what sort of thresholding we're using (per slice, global, etc.) */ AmitkThresholdStyle threshold_style; /* min/max or center/width */ amide_data_t threshold_max[2]; /* the thresholds to use for this volume */ amide_data_t threshold_min[2]; guint threshold_ref_frame[2]; amide_data_t threshold_window[AMITK_WINDOW_NUM][AMITK_LIMIT_NUM]; /* which gates we're showing */ amide_intpoint_t view_start_gate; amide_intpoint_t view_end_gate; /* parameters calculated as needed or on loading the object */ /* in theory, could be recalculated on the fly, but used enough we'll store... */ AmitkRawData * distribution; /* 1D array of data distribution, used in thresholding */ gboolean max_min_calculated; /* the min/max values can be calculated on demand */ amide_data_t global_max; amide_data_t global_min; amide_data_t * frame_max; amide_data_t * frame_min; AmitkRawData * current_scaling_factor; /* external_scaling * internal_scaling_factor[] */ amide_intpoint_t num_view_gates; GList * slice_cache; gint max_slice_cache_size; /* only used by derived data sets (slices and projections) */ /* this is a weak pointer, it should be NULL'ed automatically by gtk on the parent's destruction */ AmitkDataSet * slice_parent; /* misc data items - not saved in .xif file */ gdouble gate_time; /* used by dcmtk_interface.cc for sorting by gate */ gint instance_number; /* used by dcmtk_interface.cc occasionally for sorting */ } AmitkDataSet;
AmitkDataSet * amitk_data_set_new (AmitkPreferences *preferences, const AmitkModality modality);
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_set_new_with_data (AmitkPreferences *preferences, const AmitkModality modality, const AmitkFormat format, const AmitkVoxel dim, const AmitkScalingType scaling_type);
|
|
|
|
|
|
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_set_import_raw_file (const gchar *file_name, const AmitkRawFormat raw_format, const AmitkVoxel data_dim, guint file_offset, AmitkPreferences *preferences, const AmitkModality modality, const gchar *data_set_name, const AmitkPoint voxel_size, const amide_data_t scale_factor, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
GList * amitk_data_set_import_file (AmitkImportMethod method, int submethod, const gchar *filename, AmitkPreferences *preferences, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
void amitk_data_set_export_to_file (AmitkDataSet *ds, const AmitkExportMethod method, const int submethod, const gchar *filename, const gboolean resliced, const AmitkPoint voxel_size, const AmitkVolume *bounding_box, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void amitk_data_sets_export_to_file (GList *data_sets, const AmitkExportMethod method, const int submethod, const gchar *filename, const AmitkPoint voxel_size, const AmitkVolume *bounding_box, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
amide_data_t amitk_data_set_get_global_max (AmitkDataSet *ds);
|
|
Returns : |
amide_data_t amitk_data_set_get_global_min (AmitkDataSet *ds);
|
|
Returns : |
amide_data_t amitk_data_set_get_frame_max (AmitkDataSet *ds, const guint frame);
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_frame_min (AmitkDataSet *ds, const guint frame);
|
|
|
|
Returns : |
AmitkColorTable amitk_data_set_get_color_table_to_use (AmitkDataSet *ds, const AmitkViewMode view_mode);
|
|
|
|
Returns : |
void amitk_data_set_set_modality (AmitkDataSet *ds, const AmitkModality modality);
|
|
|
void amitk_data_set_set_scan_start (AmitkDataSet *ds, const amide_time_t start);
|
|
|
void amitk_data_set_set_frame_duration (AmitkDataSet *ds, const guint frame, amide_time_t duration);
|
|
|
|
|
void amitk_data_set_set_voxel_size (AmitkDataSet *ds, const AmitkPoint voxel_size);
|
|
|
void amitk_data_set_set_thresholding (AmitkDataSet *ds, const AmitkThresholding thresholding);
|
|
|
void amitk_data_set_set_threshold_style (AmitkDataSet *ds, const AmitkThresholdStyle threshold_style);
|
|
|
void amitk_data_set_set_threshold_max (AmitkDataSet *ds, guint which_reference, amide_data_t value);
|
|
|
|
|
void amitk_data_set_set_threshold_min (AmitkDataSet *ds, guint which_reference, amide_data_t value);
|
|
|
|
|
void amitk_data_set_set_threshold_ref_frame (AmitkDataSet *ds, guint which_reference, guint frame);
|
|
|
|
|
void amitk_data_set_set_color_table (AmitkDataSet *ds, const AmitkViewMode view_mode, const AmitkColorTable new_color_table);
|
|
|
|
|
void amitk_data_set_set_color_table_independent (AmitkDataSet *ds, const AmitkViewMode view_mode, const gboolean independent);
|
|
|
|
|
void amitk_data_set_set_interpolation (AmitkDataSet *ds, const AmitkInterpolation new_interpolation);
|
|
|
void amitk_data_set_set_subject_orientation (AmitkDataSet *ds, const AmitkSubjectOrientation subject_orientation);
|
|
|
void amitk_data_set_set_scan_date (AmitkDataSet *ds, const gchar *new_date);
|
|
|
void amitk_data_set_set_subject_name (AmitkDataSet *ds, const gchar *new_name);
|
|
|
void amitk_data_set_set_subject_id (AmitkDataSet *ds, const gchar *new_id);
|
|
|
void amitk_data_set_set_subject_dob (AmitkDataSet *ds, const gchar *new_dob);
|
|
|
void amitk_data_set_set_conversion (AmitkDataSet *ds, AmitkConversion new_conversion);
|
|
|
void amitk_data_set_set_scale_factor (AmitkDataSet *ds, amide_data_t new_scale_factor);
|
|
|
void amitk_data_set_set_injected_dose (AmitkDataSet *ds, amide_data_t new_injected_dose);
|
|
|
void amitk_data_set_set_subject_weight (AmitkDataSet *ds, amide_data_t new_subject_weight);
|
|
|
void amitk_data_set_set_cylinder_factor (AmitkDataSet *ds, amide_data_t new_cylinder_factor);
|
|
|
void amitk_data_set_set_displayed_dose_unit (AmitkDataSet *ds, AmitkDoseUnit new_dose_unit);
|
|
|
void amitk_data_set_set_displayed_weight_unit (AmitkDataSet *ds, AmitkWeightUnit new_weight_unit);
|
|
|
void amitk_data_set_set_displayed_cylinder_unit (AmitkDataSet *ds, AmitkCylinderUnit new_cylinder_unit);
|
|
|
void amitk_data_set_set_threshold_window (AmitkDataSet *ds, const AmitkWindow window, const AmitkLimit limit, const amide_data_t value);
|
|
|
|
|
|
|
void amitk_data_set_set_view_start_gate (AmitkDataSet *ds, amide_intpoint_t start_gate);
|
|
|
void amitk_data_set_set_view_end_gate (AmitkDataSet *ds, amide_intpoint_t end_gate);
|
|
|
amide_time_t amitk_data_set_get_start_time (const AmitkDataSet *ds, const guint frame);
|
|
|
|
Returns : |
amide_time_t amitk_data_set_get_end_time (const AmitkDataSet *ds, const guint frame);
|
|
|
|
Returns : |
amide_time_t amitk_data_set_get_midpt_time (const AmitkDataSet *ds, const guint frame);
|
|
|
|
Returns : |
guint amitk_data_set_get_frame (const AmitkDataSet *ds, const amide_time_t time);
|
|
|
|
Returns : |
amide_time_t amitk_data_set_get_frame_duration (const AmitkDataSet *ds, guint frame);
|
|
|
|
Returns : |
amide_time_t amitk_data_set_get_min_frame_duration (const AmitkDataSet *ds);
|
|
Returns : |
void amitk_data_set_calc_max_min (AmitkDataSet *ds, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
amide_data_t amitk_data_set_get_max (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration);
|
|
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_min (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration);
|
|
|
|
|
|
Returns : |
void amitk_data_set_get_thresholding_max_min (AmitkDataSet *ds, AmitkDataSet *slice, const amide_time_t start, const amide_time_t duration, amide_data_t *max, amide_data_t *min);
|
|
|
|
|
|
|
|
|
|
|
void amitk_data_set_calc_distribution (AmitkDataSet *ds, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
amide_data_t amitk_data_set_get_internal_value (const AmitkDataSet *ds, const AmitkVoxel i);
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_value (const AmitkDataSet *ds, const AmitkVoxel i);
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_internal_scaling_factor (const AmitkDataSet *ds, const AmitkVoxel i);
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_scaling_factor (const AmitkDataSet *ds, const AmitkVoxel i);
|
|
|
|
Returns : |
amide_data_t amitk_data_set_get_scaling_intercept (const AmitkDataSet *ds, const AmitkVoxel i);
|
|
|
|
Returns : |
void amitk_data_set_set_value (AmitkDataSet *ds, const AmitkVoxel i, const amide_data_t value, const gboolean signal_change);
|
|
|
|
|
|
|
void amitk_data_set_set_internal_value (AmitkDataSet *ds, const AmitkVoxel i, const amide_data_t internal_value, const gboolean signal_change);
|
|
|
|
|
|
|
void amitk_data_set_get_projections (AmitkDataSet *ds, const guint frame, const guint gate, AmitkDataSet **projections, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
AmitkDataSet * amitk_data_set_get_cropped (const AmitkDataSet *ds, const AmitkVoxel start, const AmitkVoxel end, const AmitkFormat format, const AmitkScalingType scaling_type, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_set_get_filtered (const AmitkDataSet *ds, const AmitkFilter filter_type, const gint kernel_size, const amide_real_t fwhm, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_set_get_slice (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration, const amide_intpoint_t gate, const AmitkCanvasPoint pixel_size, const AmitkVolume *slice_volume);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
void amitk_data_set_get_line_profile (AmitkDataSet *ds, const amide_time_t start, const amide_time_t duration, const AmitkPoint start_point, const AmitkPoint end_point, GPtrArray **preturn_data);
|
|
|
|
|
|
|
|
|
|
|
gint amitk_data_sets_count (GList *objects, gboolean recurse);
|
|
|
|
Returns : |
amide_time_t amitk_data_sets_get_min_frame_duration (GList *objects);
|
|
Returns : |
amide_real_t amitk_data_sets_get_min_voxel_size (GList *objects);
|
|
Returns : |
amide_real_t amitk_data_sets_get_max_min_voxel_size (GList *objects);
|
|
Returns : |
GList * amitk_data_sets_get_slices (GList *objects, GList **pslice_cache, const gint max_slice_cache_size, const amide_time_t start, const amide_time_t duration, const amide_intpoint_t gate, const AmitkCanvasPoint pixel_size, const AmitkVolume *view_volume);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_sets_find_with_slice_parent (GList *slices, const AmitkDataSet *slice_parent);
|
|
|
|
Returns : |
GList * amitk_data_sets_remove_with_slice_parent (GList *slices, const AmitkDataSet *slice_parent);
|
|
|
|
Returns : |
AmitkDataSet * amitk_data_sets_math (AmitkDataSet *ds1, AmitkDataSet *ds2, AmitkOperation operation, gboolean by_frame, AmitkUpdateFunc update_func, gpointer update_data);
|
|
|
|
|
|
|
|
|
|
|
|
Returns : |
#define amitk_data_set_get_frame_duration_mem(ds) (g_try_new0(amide_time_t,(ds)->raw_data->dim.t))
|
#define amitk_data_set_get_frame_max_min_mem(ds) (g_try_new0(amide_data_t,(ds)->raw_data->dim.t))
|
const gchar * amitk_scaling_type_get_name (const AmitkScalingType scaling_type);
|
|
Returns : |
const gchar * amitk_operation_get_name (const AmitkOperation operation);
|
|
Returns : |
const gchar * amitk_interpolation_get_name (const AmitkInterpolation interpolation);
|
|
Returns : |
const gchar * amitk_subject_orientation_get_name (const AmitkSubjectOrientation subject_orientation);
|
|
Returns : |
const gchar * amitk_thresholding_get_name (const AmitkThresholding thresholding);
|
|
Returns : |
const gchar * amitk_threshold_style_get_name (const AmitkThresholdStyle threshold_style);
|
|
Returns : |
const gchar * amitk_conversion_get_name (const AmitkConversion conversion);
|
|
Returns : |
const gchar * amitk_weight_unit_get_name (const AmitkWeightUnit weight_unit);
|
|
Returns : |
const gchar * amitk_dose_unit_get_name (const AmitkDoseUnit dose_unit);
|
|
Returns : |
const gchar * amitk_cylinder_unit_get_name (const AmitkCylinderUnit cylinder_unit);
|
|
Returns : |
amide_data_t amitk_weight_unit_convert_to (const amide_data_t kg, const AmitkWeightUnit weight_unit);
|
|
|
|
Returns : |
amide_data_t amitk_weight_unit_convert_from (const amide_data_t weight, const AmitkWeightUnit weight_unit);
|
|
|
|
Returns : |
amide_data_t amitk_dose_unit_convert_to (const amide_data_t MBq, const AmitkDoseUnit dose_unit);
|
|
|
|
Returns : |
amide_data_t amitk_dose_unit_convert_from (const amide_data_t dose, const AmitkDoseUnit dose_unit);
|
|
|
|
Returns : |
amide_data_t amitk_cylinder_unit_convert_to (const amide_data_t MBq_cc_image_units, const AmitkCylinderUnit cylinder_unit);
|
|
|
|
Returns : |
amide_data_t amitk_cylinder_unit_convert_from (const amide_data_t cylinder_factor, const AmitkCylinderUnit cylinder_unit);
|
|
|
|
Returns : |