added an invalid method that says if a shot is "reasonable" or not. A shot is valid if its Intrinsics are valid.

This commit is contained in:
Paolo Cignoni 2009-05-21 23:04:09 +00:00
parent c5491807fd
commit b441009e15
1 changed files with 5 additions and 0 deletions

View File

@ -231,6 +231,11 @@ public:
note: it is up to the caller to check the the matrix passed is a pure rototraslation
*/
void MultSimilarity( const Similarity<S> & s){ MultMatrix(s.Matrix());}
bool IsValid() const
{
return Intrinsics.PixelSizeMm[0]>0 && Intrinsics.PixelSizeMm[1]>0;
}
}; // end class definition