darrenlafreniere / lafarren-image-completer

Implementation of the research titled: "Image Completion Using Efficient Belief Propagation via Priority Scheduling and Dynamic Pruning"
http://www.lafarren.com/image-completer/
GNU General Public License v3.0
32 stars 18 forks source link

ssd0 #74

Closed daviddoria closed 13 years ago

daviddoria commented 13 years ago

In LfnIcSettings,cpp, should this line:

const LfnIc::Energy ssd0 = out.patchWidth * out.patchHeight * ssd0RgbDiffSq;

instead be:

const LfnIc::Energy ssd0 = (out.patchWidth * out.patchHeight)/2. * ssd0RgbDiffSq;

since only half of the patches (the overlapping parts) are compared?

darrenlafreniere commented 13 years ago

No. ssd0 is used to calculate three things: confidenceBeliefThreshold, pruneBeliefThreshold, and pruneEnergySimilarThreshold.

confidenceBeliefThreshold is used by Node::CalculatePriority(), which performs full patch comparisons against the source image.

pruneBeliefThreshold and pruneEnergySimilarThreshold are used by Node::PruneLabels() when testing full patch-to-patch energy similarity.