Functions
contrib/mul/vimt/vimt_load.h File Reference
#include <vil/vil_image_resource.h>
#include <vil/vil_convert.h>
#include <vil/vil_load.h>
#include <vimt/vimt_image_2d_of.h>

Go to the source code of this file.

Functions

vimt_transform_2d vimt_load_transform (const vil_image_resource_sptr &im, float unit_scaling=1.0f)
 Create a transform from the properties of image resource.
vimt_transform_2d vimt_load_transform_right_hand (const vil_image_resource_sptr &im, float unit_scaling=1.0f)
 Create a transform from the properties of image resource, assuming a right-hand world frame.
template<class T >
void vimt_load (const vcl_string &path, vimt_image_2d_of< T > &image, float unit_scaling=1.0f)
 Load image from path into given image (forcing to given pixel type).
template<class T >
void vimt_load_right_hand (const vcl_string &path, vimt_image_2d_of< T > &image, float unit_scaling=1.0f)
 Load image from path into given image (forcing to given pixel type).

Detailed Description

Author:
Martin Roberts, Ian Scott

Definition in file vimt_load.h.


Function Documentation

template<class T >
void vimt_load ( const vcl_string &  path,
vimt_image_2d_of< T > &  image,
float  unit_scaling = 1.0f 
) [inline]

Load image from path into given image (forcing to given pixel type).

Parameters:
unit_scalingis to convert from metres to desired world units (e.g. 1000 for mm)

Definition at line 30 of file vimt_load.h.

template<class T >
void vimt_load_right_hand ( const vcl_string &  path,
vimt_image_2d_of< T > &  image,
float  unit_scaling = 1.0f 
) [inline]

Load image from path into given image (forcing to given pixel type).

Parameters:
unit_scalingis to convert from metres to desired world units (e.g. 1000 for mm)
Note:
This version incorporates a reflection through the x-axis so that the transform is put into a right-handed coordinate frame (with y increasing from bottom to top of image).

Definition at line 51 of file vimt_load.h.

vimt_transform_2d vimt_load_transform ( const vil_image_resource_sptr im,
float  unit_scaling = 1.0f 
)

Create a transform from the properties of image resource.

Parameters:
unit_scalingis to convert from metres to desired world units (e.g. 1000 for mm)

Definition at line 12 of file vimt_load.cxx.

vimt_transform_2d vimt_load_transform_right_hand ( const vil_image_resource_sptr im,
float  unit_scaling = 1.0f 
)

Create a transform from the properties of image resource, assuming a right-hand world frame.

Parameters:
unit_scalingis to convert from metres to desired world units (e.g. 1000 for mm)
Note:
This version incorporates a reflection through the x-axis so that the transform is put into a right-handed coordinate frame (with y increasing from bottom to top of image).

Definition at line 54 of file vimt_load.cxx.