Commit 2ce19c7e authored by Guillaume Pasero's avatar Guillaume Pasero

ENH: ResetMargin app support vector images

parent e6d8e3f6
......@@ -141,8 +141,8 @@ private:
void DoExecute() override
{
FloatImageType* input = GetParameterFloatImage("in");
FloatImageType::RegionType region;
FloatVectorImageType* input = GetParameterFloatVectorImage("in");
FloatVectorImageType::RegionType region;
switch (GetParameterInt("mode"))
{
case 0: // roi
......@@ -154,8 +154,8 @@ private:
case 1: // threshold
{
region = input->GetLargestPossibleRegion();
FloatImageType::IndexType idx = region.GetIndex();
FloatImageType::SizeType sz = region.GetSize();
FloatVectorImageType::IndexType idx = region.GetIndex();
FloatVectorImageType::SizeType sz = region.GetSize();
int thrX = GetParameterInt("threshold.x");
int thrYtop = GetParameterInt("threshold.y.start");
int thrYbot = GetParameterInt("threshold.y.end");
......@@ -172,7 +172,7 @@ private:
}
}
auto filter = ResetMarginFilter<FloatImageType>::New();
auto filter = ResetMarginFilter<FloatVectorImageType>::New();
filter->SetROI(region);
filter->SetInput(input);
filter->SetPaddingValue(GetParameterFloat("val"));
......
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