本文整理匯總了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));
}