Commit 5f04ba3c authored by Cédric Traizet's avatar Cédric Traizet

Merge branch 'bug_extract_roi' into 'develop'

Bug in ExtractROI (radius and extent modes)

See merge request !537
parents 16f778d3 1e845272
Pipeline #2109 passed with stages
in 5 minutes and 40 seconds
......@@ -374,18 +374,7 @@ private:
bool CropRegionOfInterest()
{
FloatVectorImageType::RegionType region;
if ( !HasUserValue("sizex") )
SetParameterInt( "sizex" ,
GetDefaultParameterInt( "sizex" ) );
if ( !HasUserValue("sizey") )
SetParameterInt( "sizey" ,
GetDefaultParameterInt( "sizey" ) );
if ( !HasUserValue("startx") )
SetParameterInt( "startx" ,
GetDefaultParameterInt( "startx" ) );
if ( !HasUserValue("starty") )
SetParameterInt( "starty" ,
GetDefaultParameterInt( "starty" ) );
region.SetSize(0, GetParameterInt("sizex"));
region.SetSize(1, GetParameterInt("sizey"));
region.SetIndex(0, GetParameterInt("startx"));
......
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