Home || Visual Search || Applications || Architecture || Important Messages || OGL || Src

Array::Array2dVec3UInt8* Impala::Core::Training::Factory::MakeImage ( Quid  q  )  [inline]

Definition at line 183 of file Factory.h.

References Impala::QuidObj::Class(), Impala::Core::Stream::RgbDataSrc::DataPtr(), Impala::Core::Stream::RgbDataSrc::FrameHeight(), Impala::Core::Stream::RgbDataSrc::FrameWidth(), Impala::Core::Database::RawDataSet::GetQuidClass(), Impala::Core::Stream::RgbDataSrc::GotoFrame(), Impala::QuidObj::Id(), ILOG_ERROR, ILOG_WARNING, Impala::Core::Database::RawDataSet::IsImageSet(), mDataSet, and Impala::QuidObj::Object().

Referenced by GetFeatures().

00184     {
00185         QuidObj qo(q);
00186         if (qo.Class() != mDataSet->GetQuidClass())
00187         {
00188             ILOG_ERROR("[MakeImage] DataSet doesn't contain "<< qo.Class());
00189             return 0;
00190         }
00191         if (mDataSet->IsImageSet())
00192         {
00193             return static_cast<ImageSet::ImageSet*>(mDataSet)->GetImage(qo.Id());
00194         }
00195         else
00196         {
00197             ILOG_WARNING("MakeImage not tested for videosets");
00198             Stream::RgbDataSrc* src =
00199                 static_cast<VideoSet::VideoSet*>(mDataSet)->GetVideo(qo.Object());
00200             src->GotoFrame(qo.Id());
00202             Array::Array2dVec3UInt8* im = Array::ArrayCreate<Array::Array2dVec3UInt8>
00203                 (src->FrameWidth(), src->FrameHeight(), 0, 0, src->DataPtr(), true);
00204             delete src;
00205             return im;
00206         }
00207     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:13 2011 for ImpalaSrc by  doxygen 1.5.1