use of boofcv.struct.image.GrayU8 in project BoofCV by lessthanoptimal.
the class TestBinaryNaiveOps method edge4_border.
@Test
public void edge4_border() {
GrayU8 input;
input = createInput(0, 1, 0, 1, 1, 1, 0, 1, 0);
checkImage("edge4", input, 0, 1, 0, 1, 0, 1, 0, 1, 0);
input = createInput(1, 1, 1, 1, 1, 1, 1, 1, 1);
checkImage("edge4", input, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
use of boofcv.struct.image.GrayU8 in project BoofCV by lessthanoptimal.
the class TestBinaryNaiveOps method edge8.
@Test
public void edge8() {
GrayU8 input;
input = createInput(0, 0, 0, 0, 1, 0, 0, 0, 0);
checkOutput("edge8", input, 1);
input = createInput(0, 1, 0, 0, 1, 0, 0, 0, 0);
checkOutput("edge8", input, 1);
input = createInput(1, 0, 1, 0, 1, 0, 1, 0, 1);
checkOutput("edge8", input, 1);
input = createInput(1, 1, 0, 1, 1, 1, 1, 1, 1);
checkOutput("edge8", input, 1);
input = createInput(0, 0, 0, 0, 0, 0, 0, 0, 0);
checkOutput("edge8", input, 0);
input = createInput(1, 1, 1, 1, 1, 1, 1, 1, 1);
checkOutput("edge8", input, 0);
}
use of boofcv.struct.image.GrayU8 in project BoofCV by lessthanoptimal.
the class TestBinaryNaiveOps method dilate4.
@Test
public void dilate4() {
GrayU8 input;
input = createInput(0, 1, 0, 1, 1, 1, 0, 1, 0);
checkOutput("dilate4", input, 1);
input = createInput(0, 0, 0, 0, 1, 0, 0, 0, 0);
checkOutput("dilate4", input, 1);
input = createInput(0, 0, 0, 1, 0, 0, 0, 0, 0);
checkOutput("dilate4", input, 1);
input = createInput(0, 1, 0, 0, 0, 0, 0, 1, 0);
checkOutput("dilate4", input, 1);
input = createInput(0, 0, 0, 0, 0, 0, 0, 0, 0);
checkOutput("dilate4", input, 0);
input = createInput(1, 0, 1, 0, 0, 0, 1, 0, 1);
checkOutput("dilate4", input, 0);
}
use of boofcv.struct.image.GrayU8 in project BoofCV by lessthanoptimal.
the class TestBinaryNaiveOps method edge4.
@Test
public void edge4() {
GrayU8 input;
input = createInput(0, 0, 0, 0, 1, 0, 0, 0, 0);
checkOutput("edge4", input, 1);
input = createInput(0, 1, 0, 0, 1, 0, 0, 0, 0);
checkOutput("edge4", input, 1);
input = createInput(0, 0, 0, 1, 1, 1, 0, 0, 0);
checkOutput("edge4", input, 1);
input = createInput(0, 0, 0, 0, 1, 0, 0, 1, 0);
checkOutput("edge4", input, 1);
input = createInput(0, 0, 0, 0, 0, 0, 0, 0, 0);
checkOutput("edge4", input, 0);
input = createInput(1, 1, 1, 1, 1, 1, 1, 1, 1);
checkOutput("edge4", input, 0);
input = createInput(0, 1, 0, 1, 1, 1, 0, 1, 0);
checkOutput("edge4", input, 0);
input = createInput(0, 0, 0, 1, 0, 1, 0, 0, 0);
checkOutput("edge4", input, 0);
}
use of boofcv.struct.image.GrayU8 in project BoofCV by lessthanoptimal.
the class TestBinaryNaiveOps method erode8_border.
@Test
public void erode8_border() {
GrayU8 input;
input = createInput(1, 1, 1, 1, 1, 1, 1, 1, 1);
checkImage("erode8", input, 1, 1, 1, 1, 1, 1, 1, 1, 1);
input = createInput(0, 1, 0, 1, 1, 1, 0, 1, 0);
checkImage("erode8", input, 0, 0, 0, 0, 0, 0, 0, 0, 0);
}
Aggregations