Commit 779f4aa1 authored by Ahmed's avatar Ahmed

make some modifications on inRange command

parent f8c88225
......@@ -79,8 +79,8 @@ public class InRangeCommand extends ArgumentReturnMathCommand{
return new Instruction() {
@Override
public String getTargetLanguageInstruction() {
return " inRange(src, dst, Scalar(lowerB(0), lowerB(1), lowerB(2)),\n" +
" Scalar(upperB(0), upperB(1), upperB(2)));\n";
return " inRange(src, Scalar(lowerB(0), lowerB(1), lowerB(2)),\n" +
" Scalar(upperB(0), upperB(1), upperB(2)), dst);\n";
}
@Override
......
......@@ -22,8 +22,8 @@ dst=mat(n,m);
}
void inRangeHelper(Mat src, Mat dst, colvec lowerB, colvec upperB)
{
inRange(src, dst, Scalar(lowerB(0), lowerB(1), lowerB(2)),
Scalar(upperB(0), upperB(1), upperB(2)));
inRange(src, Scalar(lowerB(0), lowerB(1), lowerB(2)),
Scalar(upperB(0), upperB(1), upperB(2)), dst);
}
void execute()
{
......
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