Skip to content
Snippets Groups Projects
Commit fd0b255c authored by Stephane Dallongeville's avatar Stephane Dallongeville
Browse files

minors changes / fixes

parent 03da6416
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ public class SequenceFrameBatch extends Batch implements PluginLibrary, PluginBu
{
// initialize element if needed
if (element == null)
element = new VarSequence("Channel Sequence", null);
element = new VarSequence("Frame Sequence", null);
return element;
}
......
......@@ -44,30 +44,33 @@ public class SequenceRegionBatch extends Batch implements SequenceBlock, PluginL
}
@Override
public void declareInput(VarList inputMap)
public VarSequence getBatchElement()
{
super.declareInput(inputMap);
if (inputSequence == null)
inputSequence = new VarSequence("Sequence", null);
if (element == null)
element = new VarSequence("Region Sequence", null);
inputMap.add(inputSequence.getName(), inputSequence);
return element;
}
@Override
public VarSequence getBatchElement()
public void declareInput(VarList inputMap)
{
if (element == null)
element = new VarSequence("Channel Sequence", null);
super.declareInput(inputMap);
return element;
if (inputSequence == null)
inputSequence = new VarSequence("Sequence", null);
inputMap.add(inputSequence.getName(), inputSequence);
}
@Override
public void declareOutput(VarList outputMap)
{
super.declareOutput(outputMap);
if (currentRoi == null)
currentRoi = new VarROIArray("Current ROI");
outputMap.add(currentRoi.getName(), currentRoi);
}
......@@ -87,7 +90,8 @@ public class SequenceRegionBatch extends Batch implements SequenceBlock, PluginL
public void beforeIteration()
{
// set result in element
ROI roi = rois.getValue()[getIterationCounter().getValue().intValue()];
final ROI roi = rois.getValue()[getIterationCounter().getValue().intValue()];
element.setValue(SequenceUtil.getSubSequence(inputSequence.getValue(), roi));
currentRoi.setValue(new ROI[] {roi});
}
......
......@@ -41,7 +41,7 @@ public class SequenceSliceBatch extends Batch implements SequenceBlock, PluginLi
{
// initialize element if needed
if (element == null)
element = new VarSequence("Channel Sequence", null);
element = new VarSequence("Slice Sequence", null);
return element;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment