本文整理汇总了Java中org.openimaj.image.processing.convolution.FSobel类的典型用法代码示例。如果您正苦于以下问题:Java FSobel类的具体用法?Java FSobel怎么用?Java FSobel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FSobel类属于org.openimaj.image.processing.convolution包,在下文中一共展示了FSobel类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: StructureTensorDemo
import org.openimaj.image.processing.convolution.FSobel; //导入依赖的package包/类
public StructureTensorDemo() {
this.image = new FImage(300, 300);
final FImageRenderer r = image.createRenderer(RenderHints.ANTI_ALIASED);
r.drawLine(0, 150, 75, 75, 3, 1f);
r.drawLine(0, 0, 75, 75, 3, 1f);
r.drawLine(0, 200, 100, 250, 3, 1f);
r.drawLine(0, 300, 100, 250, 3, 1f);
r.drawLine(200, 0, 200, 100, 3, 1f);
r.drawLine(200, 100, 300, 100, 3, 1f);
r.drawLine(250, 300, 200, 200, 3, 1f);
r.drawLine(300, 250, 200, 200, 3, 1f);
final FSobel fs = new FSobel();
fs.analyseImage(image);
this.dx = fs.dx;
this.dy = fs.dy;
}
示例2: processImage
import org.openimaj.image.processing.convolution.FSobel; //导入依赖的package包/类
@Override
public void processImage(FImage image) {
final FSobel grads = new FSobel(canny.sigma);
final FImage edges = image.clone();
canny.processImage(edges, grads);
image.fill(Float.POSITIVE_INFINITY);
final List<List<Pixel>> rays = generateRays(edges, grads.dx, grads.dy, direction, image);
medianFilter(image, rays);
}
示例3: processImage
import org.openimaj.image.processing.convolution.FSobel; //导入依赖的package包/类
@Override
public void processImage(FImage image) {
processImage(image, new FSobel(sigma));
}