X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbcreaContoursSetViewerWindowColorLevel.cxx;h=a1610bc1a5c90379226699e66840e70b76f18839;hb=50ec6e619f4affc65949b22b79662ba283818bc3;hp=d158ca7621b5b87173729c8181981cf5f8e7423e;hpb=f440179be0d3ac00240a569c464b59ff35bd8b81;p=creaContours.git diff --git a/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx b/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx index d158ca7..a1610bc 100644 --- a/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx +++ b/bbtk/src/bbcreaContoursSetViewerWindowColorLevel.cxx @@ -13,7 +13,6 @@ BBTK_BLACK_BOX_IMPLEMENTATION(SetViewerWindowColorLevel,bbtk::AtomicBlackBox); //===== void SetViewerWindowColorLevel::Process() { - // THE MAIN PROCESSING METHOD BODY // Here we simply set the input 'In' value to the output 'Out' // And print out the output value @@ -25,11 +24,10 @@ void SetViewerWindowColorLevel::Process() // (the one provided in the attribute 'name' of the tag 'input') // * TYPE is the C++ type of the input/output // (the one provided in the attribute 'type' of the tag 'input') - if ( (bbGetInputWindowColorLevel().size()==2 ) && (bbGetInputwxContourMainFrame()!=NULL )) { - double w=bbGetInputWindowColorLevel()[0]; - double c=bbGetInputWindowColorLevel()[1]; + double w = bbGetInputWindowColorLevel()[0]; + double c = bbGetInputWindowColorLevel()[1]; bbGetInputwxContourMainFrame()->onBrigthnessColorWindowLevel(w,c); } // if WindowColorLevel size && wxContourMainFrame }