Commit 98e88721 authored by Cédric Traizet's avatar Cédric Traizet

BUG: startx starty sizex and sizey values are always overriden by default...

BUG: startx starty sizex and sizey values are always overriden by default values (full image) in extent and radius mode
parent fb9a3b5f
Pipeline #2052 passed with stages
in 49 minutes and 21 seconds
......@@ -374,16 +374,16 @@ private:
bool CropRegionOfInterest()
{
FloatVectorImageType::RegionType region;
if ( !HasUserValue("sizex") )
if ( !HasValue("sizex") )
SetParameterInt( "sizex" ,
GetDefaultParameterInt( "sizex" ) );
if ( !HasUserValue("sizey") )
if ( !HasValue("sizey") )
SetParameterInt( "sizey" ,
GetDefaultParameterInt( "sizey" ) );
if ( !HasUserValue("startx") )
if ( !HasValue("startx") )
SetParameterInt( "startx" ,
GetDefaultParameterInt( "startx" ) );
if ( !HasUserValue("starty") )
if ( !HasValue("starty") )
SetParameterInt( "starty" ,
GetDefaultParameterInt( "starty" ) );
region.SetSize(0, GetParameterInt("sizex"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment