Loading isis/src/control/apps/findfeatures/GenericTransform.cpp +34 −29 Original line number Diff line number Diff line Loading @@ -148,6 +148,11 @@ void GenericTransform::setInverse(const cv::Mat &matrix) { /** Calculate the inverse transform from the forward matrix */ cv::Mat GenericTransform::calculateInverse(const cv::Mat &matrix) { if (matrix.empty()) { // inverting an empty matrix causes a segfault QString msg = "Can't invert empty matrix."; throw IException(IException::Programmer, msg, _FILEINFO_); } return ( matrix.inv() ); } Loading Loading
isis/src/control/apps/findfeatures/GenericTransform.cpp +34 −29 Original line number Diff line number Diff line Loading @@ -148,6 +148,11 @@ void GenericTransform::setInverse(const cv::Mat &matrix) { /** Calculate the inverse transform from the forward matrix */ cv::Mat GenericTransform::calculateInverse(const cv::Mat &matrix) { if (matrix.empty()) { // inverting an empty matrix causes a segfault QString msg = "Can't invert empty matrix."; throw IException(IException::Programmer, msg, _FILEINFO_); } return ( matrix.inv() ); } Loading