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

@ -232,6 +232,11 @@ public:
*/
void MultSimilarity( const Similarity<S> & s){ MultMatrix(s.Matrix());}
bool IsValid() const
{
return Intrinsics.PixelSizeMm[0]>0 && Intrinsics.PixelSizeMm[1]>0;
}
}; // end class definition