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

virtual void Impala::Core::ImageSet::CheckSizes::HandleNewFile ( ImageSet is,
int  fileId,
Array::Array2dVec3UInt8 im 
) [inline, virtual]

Arrived at given DB_FILE in a "normal" walk.

Reimplemented from Impala::Core::ImageSet::Listener.

Definition at line 56 of file CheckSizes.h.

References Impala::Core::Database::RawDataSet::AddFile(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CW(), ILOG_ERROR, mMaxHeight, mMaxWidth, mMinHeight, mMinWidth, and mNewSet.

00057     {
00058         String fileName = is->GetAsPath(fileId);
00059         if (im == 0)
00060         {
00061             ILOG_ERROR("No image " << fileName);
00062             return;
00063         }
00064         bool error = false;
00065         if ((im->CW() < mMinWidth) || (im->CW() > mMaxWidth))
00066         {
00067             ILOG_ERROR("width " << im->CW() << " out of range: " << fileName);
00068             error = true;
00069         }
00070         if ((im->CH() < mMinHeight) || (im->CH() > mMaxHeight))
00071         {
00072             ILOG_ERROR("height " << im->CH() << " out of range: " << fileName);
00073             error = true;
00074         }
00075         if (error)
00076         {
00077             return;
00078         }
00079         if (mNewSet)
00080         {
00081             int dirId = is->GetDirIdOfFile(fileId);
00082             mNewSet->AddFile(is->GetFile(fileId), is->GetSection(dirId),
00083                              is->GetDir(dirId));
00084         }
00085     }

Here is the call graph for this function:


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