Skip to content

Commit

Permalink
Fixed default values in cmBinarize
Browse files Browse the repository at this point in the history
  • Loading branch information
themoob committed Mar 15, 2012
1 parent a58070b commit ba6c2a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/C2DPluginSample/cmBinarize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mmCalcMethod(p_psLogReceiver, L"cmBinarize")
m_sCMParams = cmBinarizeParams;

// members initialization
m_rThreshold = 127.0;
m_rThreshold = 0.5;

// input parameters
BindInputParam(g_UIParam_ImageName, mmGenericParamI::mmImageNameType, m_sImageName);
Expand Down Expand Up @@ -76,7 +76,7 @@ bool mmImages::cmBinarize::Calculate()
// set layer name to `binarized'
m_sLayerName = L"binarized";
// create new layer
mmLayerI* v_psNewLayer = v_psImage->CreateLayer(m_sLayerName, 0.0);
mmLayerI* v_psNewLayer = v_psImage->CreateLayer(m_sLayerName, -1.0);
// if creating the layer failed, clear output parameter and say there's an error
if (!v_psNewLayer) {
m_sLayerName = L"";
Expand Down

0 comments on commit ba6c2a6

Please sign in to comment.