Update of /cvsroot/hugin/hugin/src/include/PT
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3712/include/PT
Modified Files:
RemappedPanoImage.h
Log Message:
bugfix: new transform code code assumed e=d.
bugfix: fixed crash when rectangular crop lies outside of input image
Index: RemappedPanoImage.h
===================================================================
RCS file: /cvsroot/hugin/hugin/src/include/PT/RemappedPanoImage.h,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- RemappedPanoImage.h 5 Feb 2006 14:39:40 -0000 1.14
+++ RemappedPanoImage.h 21 Feb 2006 23:12:45 -0000 1.15
@@ -418,6 +418,8 @@
case SrcPanoImage::CROP_RECTANGLE:
{
initImage(vigra::destImageRange(alpha),0);
+ // make sure crop is inside the image..
+ cR &= vigra::Rect2D(0,0, srcImgSize.x, srcImgSize.y);
initImage(alpha.upperLeft()+cR.upperLeft(),
alpha.upperLeft()+cR.lowerRight(),
alpha.accessor(),255);
@@ -481,6 +483,7 @@
}
case SrcPanoImage::CROP_RECTANGLE:
{
+ cR &= vigra::Rect2D(0,0, srcImgSize.x, srcImgSize.y);
initImageIf(alpha.upperLeft()+cR.upperLeft(),
alpha.upperLeft()+cR.lowerRight(),
alpha.accessor(),
|