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

Array::Array2dVec3UInt8* Impala::Core::ImageSet::ImageSet::GetImage ( int  fileId  )  [inline]

Todo:
GetImageData is experimental, if/when it becomes standard This function should use the output of GetImageData and just do a ReadImageFromMemory on it.

Definition at line 146 of file ImageSet.h.

References GetArchive(), Impala::Core::Database::RawDataSet::GetDatabase(), Impala::Core::Database::RawDataSet::GetDirIdOfFile(), Impala::Core::Database::RawDataSet::GetFilePathImageData(), Impala::Core::Database::RawDataSet::GetFirstFileId(), GetImageLocator(), mUseArchive, mUseSplitArchive, Impala::Core::Array::ReadFile(), and Impala::Core::Array::ImageArchive::ReadImage().

Referenced by Impala::Visualization::ImagesWindow::AddImage(), Impala::Application::WindowAnnoVidSet::BuildGUI(), Impala::Core::ImageSet::IxsDocument::CurImage(), Impala::Core::ImageSet::Walker::DoWalk(), Impala::Core::ImageSet::Walker::DoWalkBookmarks(), Impala::Core::Trec::SearchTopic::GetCurTopicImageExample(), Impala::Core::Trec::ThreadSet::GetImageByKeyframeID(), Impala::Core::Trec::ThreadSet::GetImageByShotID(), Impala::Application::VideoExcel::TableDataSourceTrec::GetImageDataByID(), Impala::Application::MediaTable::TableDataSourceTrec::GetImageDataByID(), Impala::Visualization::RotorBrowser::RotorView::getNextStill(), Impala::Application::IDash::TrecEngine::GetStill(), Impala::Core::Trec::SearchTopic::GetTopicImageExample(), Impala::Visualization::GUI::ShotResultPreviewBar::Init(), Impala::Visualization::GUI::KeyframeResultBar::Init(), Impala::Application::WindowShowVidSet::InitData(), Impala::Application::WindowShowImSet::InitData(), Impala::Core::Test::TestImage::OpenSrcArray(), Impala::Application::WindowTrecResult::ReadData(), Impala::Application::WindowTrecResult::SetActiveShot(), Impala::Visualization::SegmentationDocumentGuiStills::UpdateFromJpg(), Impala::Visualization::GUI::ShotDetailSidebar::UpdateStills(), and Impala::Core::VideoSet::SegmentationDocument::VisualAtCursor().

00147     {
00148         Array::Array2dVec3UInt8* im = 0;
00149         if (mUseArchive)
00150         {
00151             int dirId;
00152             int imIdx;
00153             if (mUseSplitArchive)
00154             {
00155                 dirId = GetDirIdOfFile(fileId);
00156                 imIdx = fileId - GetFirstFileId(dirId);
00157             }
00158             else
00159             {
00160                 dirId = 0;
00161                 imIdx = fileId;
00162             }
00163 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00164             Array::ImageArchiveFile* ar = GetArchive(dirId);
00165 #else // REPOSITORY_USED
00166             Array::ImageArchive* ar = GetArchive(dirId);
00167 #endif // REPOSITORY_USED
00168             if (ar)
00169                 im = ar->ReadImage(imIdx);
00170         }
00171         else
00172         {
00173 #ifndef REPOSITORY_USED // Here comes the deprecated stuff
00174             String path = GetFilePathImageData(fileId, false, false);
00175             if (!path.empty())
00176                 ReadFile(im, path, GetDatabase());
00177 #else // REPOSITORY_USED
00178             Persistency::ImageLocator loc = GetImageLocator(fileId);
00179             im = Persistency::ImageRepository().Get(loc);
00180 #endif // REPOSITORY_USED
00181         }
00182         return im;
00183     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:14:27 2010 for ImpalaSrc by  doxygen 1.5.1