open.java

来自「本例是用java编写的指纹图象处理,希望对从事此项目的人有所帮助.」· Java 代码 · 共 37 行

JAVA
37
字号
import java.applet.*;
import java.awt.*;
import java.awt.image.*;
import java.net.*;
import java.util.*;
import java.io.*;
import java.lang.Math;

/**
 * Open is an algorithm to open a binary image using a 3x3 kernel using
 * erosion followed by dilation.
 *
 * @author Simon Horne.
 */
public class Open extends Thread {

  /**
   * Default no-arg constructor.
   */
  public Open() {
  }

  /**
   * Method to open a binary image by eroding and then dilating the image
   * using the specified kernel.
   */
  public static BinaryFast open_image(BinaryFast b, int [] kernel, 
          int iterations){
    int i=0;
      b = Erode.erode_image(b, kernel, iterations);
      b = Dilate.dilate_image(b, kernel, iterations);
    return b;
  }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?