Update of /cvsroot/hugin/hugin/src/include/PT
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3789/src/include/PT
Modified Files:
Stitcher.h PanoramaMemento.h Panorama.h
Log Message:
nona: added support for selecting tiff compression.
Index: PanoramaMemento.h
===================================================================
RCS file: /cvsroot/hugin/hugin/src/include/PT/PanoramaMemento.h,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- PanoramaMemento.h 26 May 2005 22:11:39 -0000 1.45
+++ PanoramaMemento.h 26 Jul 2005 06:05:17 -0000 1.46
@@ -211,7 +211,7 @@
/** try to read image information from file */
bool initFromFile(const std::string & filename, double &cropFactor);
-
+
// double isLandscape() const {
// return sensorRatio >=1;
// }
@@ -354,6 +354,7 @@
width(3000),
outfile("panorama.JPG"),outputFormat(JPEG),
quality(90),
+ tiffCompression("none"),
tiff_saveROI(false),
colorCorrection(NONE), colorReferenceImage(0),
gamma(1.0), interpolator(vigra_ext::INTERP_CUBIC),
@@ -370,6 +371,7 @@
width = 3000;
outfile = "panorama.JPG";
quality = 90;
+ tiffCompression = "none";
tiff_saveROI = false;
colorCorrection = NONE;
colorReferenceImage = 0;
@@ -419,6 +421,7 @@
// jpeg options
int quality;
// TIFF options
+ std::string tiffCompression;
bool tiff_saveROI;
ColorCorrection colorCorrection;
Index: Panorama.h
===================================================================
RCS file: /cvsroot/hugin/hugin/src/include/PT/Panorama.h,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -d -r1.41 -r1.42
--- Panorama.h 26 May 2005 22:11:39 -0000 1.41
+++ Panorama.h 26 Jul 2005 06:05:17 -0000 1.42
@@ -77,6 +77,8 @@
bool getPTStringParam(std::string & output, const std::string & line,
const std::string & parameter);
+bool getPTStringParamColon(std::string & output, const std::string & line, const std::string & parameter);
+
bool getDoubleParam(double & d, const std::string & line, const std::string & name);
bool getPTDoubleParam(double & value, int & link,
Index: Stitcher.h
===================================================================
RCS file: /cvsroot/hugin/hugin/src/include/PT/Stitcher.h,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- Stitcher.h 5 May 2005 21:25:12 -0000 1.25
+++ Stitcher.h 26 Jul 2005 06:05:17 -0000 1.26
@@ -101,7 +101,7 @@
double alphaScale;
bool circCrop = pano.getLens(pano.getImage(imgNr).getLensNr()).getProjection() == Lens::CIRCULAR_FISHEYE;
estimateImageRect(Size2D(opts.width, opts.getHeight()), srcSize,
- imgOpts.docrop, imgOpts.cropRect, circCrop,
+ imgOpts.docrop, imgOpts.cropRect, circCrop,
transf,
imageRect, miniAlpha, alphaScale);
@@ -114,12 +114,14 @@
vigra_ext::createTiffDirectory(tiff,
img.getFilename(),
m_basename,
+ opts.tiffCompression,
imgNr+1, nImg,
imageRect.upperLeft());
} else {
vigra_ext::createTiffDirectory(tiff,
img.getFilename(),
m_basename,
+ opts.tiffCompression,
imgNr+1, nImg,
vigra::Diff2D(0,0));
}
@@ -274,6 +276,7 @@
vigra_ext::createTiffDirectory(tiff,
Base::m_pano.getImage(imgNr).getFilename(),
m_basename,
+ opts.tiffCompression,
imgNr+1, nImg,
vigra::Diff2D(0,0));
vigra_ext::createAlphaTiffImage(srcImageRange(complete),
@@ -353,6 +356,7 @@
vigra_ext::createTiffDirectory(m_tiff,
Base::m_pano.getImage(imgNr).getFilename(),
Base::m_basename,
+ opts.tiffCompression,
imgNr+1, nImg, remapped.boundingBox().upperLeft());
vigra_ext::createAlphaTiffImage(vigra::srcImageRange(remapped.m_image),
vigra::maskImage(remapped.m_mask),
|