contrib/mul/vil3d/vil3d_slice.h File Reference


Detailed Description

Author:
Tim Cootes.

Definition in file vil3d_slice.h.

#include <vil/vil_image_view.h>
#include <vil3d/vil3d_image_view.h>
#include <vcl_cassert.h>

Go to the source code of this file.


Enumerations

enum  vil3d_slice_format {
  VIL3D_SLICE_FORMAT_IJ = 0, VIL3D_SLICE_FORMAT_JI = 1, VIL3D_SLICE_FORMAT_IK = 2, VIL3D_SLICE_FORMAT_KI = 3,
  VIL3D_SLICE_FORMAT_JK = 4, VIL3D_SLICE_FORMAT_KJ = 5
}
 Define format of a slice from a 3D volume. More...

Functions

unsigned vil3d_n_slices (const vil3d_image_view_base &image, vil3d_slice_format slice_format)
 Return number of possible slices of image given the selected format.
double vil3d_slice_pixel_width_i (double src_i_width, double src_j_width, double src_k_width, vil3d_slice_format slice_format)
 Return pixel width in i direction of slice, given widths of original 3D volume pixels.
double vil3d_slice_pixel_width_j (double src_i_width, double src_j_width, double src_k_width, vil3d_slice_format slice_format)
 Return pixel width in j direction of slice, given widths of original 3D volume pixels.
double vil3d_slice_separation (double src_i_width, double src_j_width, double src_k_width, vil3d_slice_format slice_format)
 Return separation of neighbouring slices, given widths of original 3D volume pixels.

Enumeration Type Documentation

enum vil3d_slice_format

Define format of a slice from a 3D volume.

Enumerator:
VIL3D_SLICE_FORMAT_IJ 
VIL3D_SLICE_FORMAT_JI 
VIL3D_SLICE_FORMAT_IK 
VIL3D_SLICE_FORMAT_KI 
VIL3D_SLICE_FORMAT_JK 
VIL3D_SLICE_FORMAT_KJ 

Definition at line 118 of file vil3d_slice.h.


Function Documentation

unsigned vil3d_n_slices ( const vil3d_image_view_base image,
vil3d_slice_format  slice_format 
) [inline]

Return number of possible slices of image given the selected format.

Thus if slice_format==VIL3D_SLICE_FORMAT_IJ then return image.nk().

Definition at line 151 of file vil3d_slice.h.

double vil3d_slice_pixel_width_i ( double  src_i_width,
double  src_j_width,
double  src_k_width,
vil3d_slice_format  slice_format 
) [inline]

Return pixel width in i direction of slice, given widths of original 3D volume pixels.

Thus if slice_format==VIL3D_SLICE_FORMAT_JK then return src_j_width.

Definition at line 169 of file vil3d_slice.h.

double vil3d_slice_pixel_width_j ( double  src_i_width,
double  src_j_width,
double  src_k_width,
vil3d_slice_format  slice_format 
) [inline]

Return pixel width in j direction of slice, given widths of original 3D volume pixels.

Thus if slice_format==VIL3D_SLICE_FORMAT_JK then return src_k_width.

Definition at line 187 of file vil3d_slice.h.

double vil3d_slice_separation ( double  src_i_width,
double  src_j_width,
double  src_k_width,
vil3d_slice_format  slice_format 
) [inline]

Return separation of neighbouring slices, given widths of original 3D volume pixels.

Thus if slice_format==VIL3D_SLICE_FORMAT_JK then return src_i_width.

Definition at line 205 of file vil3d_slice.h.


Generated on Mon Nov 23 05:15:08 2009 for contrib/mul/vil3d by  doxygen 1.5.1