contrib/brl/bbas/vidl2/vidl2_convert.h File Reference


Detailed Description

Convert frames to vil_image_views.

Author:
Matt Leotta
Date:
16 Jan 2006
This file contains functions used to convert a vidl2_frame_sptr into a vil_image_view.

Definition in file vidl2_convert.h.

#include "vidl2_frame_sptr.h"
#include "vidl2_frame.h"
#include <vil/vil_image_view_base.h>

Go to the source code of this file.


Functions

bool vidl2_convert_to_view (const vidl2_frame &frame, vil_image_view_base &image, vidl2_pixel_color require_color=VIDL2_PIXEL_COLOR_UNKNOWN)
 Convert the frame into an image view.
vil_image_view_base_sptr vidl2_convert_wrap_in_view (const vidl2_frame &frame)
 Wrap the frame buffer in an image view if supported.
bool vidl2_convert_frame (const vidl2_frame &in_frame, vidl2_frame &out_frame)
 Convert the pixel format of a frame.
vidl2_frame_sptr vidl2_convert_frame (const vidl2_frame_sptr &in_frame, vidl2_pixel_format format)
 Convert the pixel format of a frame.
vidl2_frame_sptr vidl2_convert_to_frame (const vil_image_view_base_sptr &image)
 Convert the image view to a frame.

Function Documentation

vidl2_frame_sptr vidl2_convert_frame ( const vidl2_frame_sptr in_frame,
vidl2_pixel_format  format 
)

Convert the pixel format of a frame.

The convert in_frame to a format by allocating a new frame buffer

Definition at line 331 of file vidl2_convert.cxx.

bool vidl2_convert_frame ( const vidl2_frame in_frame,
vidl2_frame out_frame 
)

Convert the pixel format of a frame.

The in_frame->data() is converted from in_frame->pixel_format() to out_frame->pixel_format() and stored in out_frame->data()

Returns:
false if the output frame data is not the correct size.

Definition at line 302 of file vidl2_convert.cxx.

vidl2_frame_sptr vidl2_convert_to_frame ( const vil_image_view_base_sptr image  ) 

Convert the image view to a frame.

Will wrap the memory if possible, if not the image is converted to the closest vidl2_pixel_format

Definition at line 353 of file vidl2_convert.cxx.

bool vidl2_convert_to_view ( const vidl2_frame frame,
vil_image_view_base image,
vidl2_pixel_color  require_color 
)

Convert the frame into an image view.

possibly converts the pixel data type always create a deep copy of the data

Definition at line 406 of file vidl2_convert.cxx.

vil_image_view_base_sptr vidl2_convert_wrap_in_view ( const vidl2_frame frame  ) 

Wrap the frame buffer in an image view if supported.

Returns a null pointer if not possible

Definition at line 545 of file vidl2_convert.cxx.


Generated on Sat Sep 6 05:21:55 2008 for contrib/brl/bbas/vidl2 by  doxygen 1.5.1