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:
|