From: <st...@us...> - 2009-07-07 11:32:43
|
Revision: 4003 http://hugin.svn.sourceforge.net/hugin/?rev=4003&view=rev Author: stativ Date: 2009-07-07 11:32:37 +0000 (Tue, 07 Jul 2009) Log Message: ----------- Move saving of weights to the deghosting_mask Modified Paths: -------------- hugin/branches/gsoc2009_deghosting/src/deghosting/deghosting_mask.cpp hugin/branches/gsoc2009_deghosting/src/deghosting/khan.cpp Modified: hugin/branches/gsoc2009_deghosting/src/deghosting/deghosting_mask.cpp =================================================================== --- hugin/branches/gsoc2009_deghosting/src/deghosting/deghosting_mask.cpp 2009-07-07 11:25:24 UTC (rev 4002) +++ hugin/branches/gsoc2009_deghosting/src/deghosting/deghosting_mask.cpp 2009-07-07 11:32:37 UTC (rev 4003) @@ -192,5 +192,13 @@ deghoster = &khanDeghoster; - deghoster->createWeightMasks(); + vector<FImagePtr> weights = deghoster->createWeightMasks(); + + // save weights + for (unsigned int i=0; i<weights.size(); ++i) { + char tmpfn[100]; + snprintf(tmpfn, 99, "%s_%d.tiff", outputPrefix.c_str(), i); + ImageExportInfo exWeights(tmpfn); + exportImage(srcImageRange(*weights[i]), exWeights.setPixelType("UINT8")); + } } Modified: hugin/branches/gsoc2009_deghosting/src/deghosting/khan.cpp =================================================================== --- hugin/branches/gsoc2009_deghosting/src/deghosting/khan.cpp 2009-07-07 11:25:24 UTC (rev 4002) +++ hugin/branches/gsoc2009_deghosting/src/deghosting/khan.cpp 2009-07-07 11:32:37 UTC (rev 4003) @@ -284,15 +284,6 @@ } } - - // save debug weights - // save weights for testing purposes - { - char tmpfn[100]; - snprintf(tmpfn, 99, "weights_%d.tiff", i); - ImageExportInfo exWeights(tmpfn); - exportImage(srcImageRange(*weights[i]), exWeights.setPixelType("UINT8")); - } } } return weights; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |