public boolean createTransform ( Point2D_F64 tl , Point2D_F64 tr , Point2D_F64 br , Point2D_F64 bl ) { associatedPairs . get ( 0 ) . p2 . set ( tl ) ; associatedPairs . get ( 1 ) . p2 . set ( tr ) ; associatedPairs . get ( 2 ) . p2 . set ( br ) ; associatedPairs . get ( 3 ) . p2 . set ( bl ) ; if ( ! computeHomography . process ( associatedPairs , H ) ) return false ; // if( !refineHomography.fitModel(associatedPairs,H,Hrefined) ) { // return false; // } // homography.set(Hrefined); ConvertMatrixData . convert ( H , H32 ) ; transform . set ( H32 ) ; return true ; }
Compues the distortion removal transform