/ Published in: Java
Expand |
Embed | Plain Text
{ KernelJAI kernel = new KernelJAI(7, 7, new float[]{ 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0 }); pb.addSource(img); pb.add(kernel); return JAI.create("erode", pb); }
You need to login to post a comment.
