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

virtual void Impala::Visualization::VideoSquareMapFunction::ShotToXY ( int  shot,
int *  x,
int *  y 
) [inline, virtual]

Implements Impala::Visualization::MapFunction.

Definition at line 50 of file MapFunction.h.

References Impala::Core::VideoSet::Segmentation::GetFirstShotVideo(), Impala::Core::VideoSet::Segmentation::GetNrShotsVideo(), Impala::Core::VideoSet::Segmentation::GetNrVideos(), Impala::Core::VideoSet::Segmentation::GetVideoId(), Impala::Visualization::MapFunction::mHeight, mSegmentation, and Impala::Visualization::MapFunction::mWidth.

00051     {
00052         int videos = mSegmentation->GetNrVideos();
00053         int video = mSegmentation->GetVideoId(shot);
00054         int shotsinvideo = mSegmentation->GetNrShotsVideo(video);
00055         int videoshot = shot - mSegmentation->GetFirstShotVideo(video);
00056         *x = videoshot * mWidth / shotsinvideo;
00057         *y = video * mHeight / videos;
00058     }

Here is the call graph for this function:


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