core/vidl_vil1/vidl_vil1_frame_as_image.cxx

Go to the documentation of this file.
00001 //:
00002 // \file
00003 
00004 #include "vidl_vil1_frame_as_image.h"
00005 #include <vidl_vil1/vidl_vil1_frame.h>
00006 
00007 //=========================================================================
00008 //  Methods for vidl_vil1_frame_as_image.
00009 //_________________________________________________________________________
00010 
00011 //------------------------------------------------------------------------
00012 // CONSTRUCTOR(S) AND DESTRUCTOR
00013 
00014 //: Constructor.
00015 // Take the characteristics of the first image of the movie
00016 vidl_vil1_frame_as_image::vidl_vil1_frame_as_image(vidl_vil1_frame* frame)
00017   : frame_(frame)
00018 {
00019 }
00020 
00021 // Destructor
00022 vidl_vil1_frame_as_image::~vidl_vil1_frame_as_image()
00023 {
00024 }
00025 
00026 
00027 //: Return the specified ROI from the Frame
00028 bool vidl_vil1_frame_as_image::get_section(void* ib,
00029                                            int x0, int y0,
00030                                            int width, int height) const
00031 {
00032   return frame_->get_section(ib, x0, y0, width, height);
00033 }
00034 
00035 int vidl_vil1_frame_as_image::components() const
00036 {
00037   return frame_->get_bits_pixel() / 8;
00038 }

Generated on Tue Dec 2 05:09:13 2008 for core/vidl_vil1 by  doxygen 1.5.1