identity.java

来自「JAVA 实现虹膜识别(完整)」· Java 代码 · 共 72 行

JAVA
72
字号
package IrisRecog;

/**
 * Identity.java
 * 
 * Represents the identity of a scanned subject, which is simply a copy of the 
 * unwrapped image resulting from the scanning process and the name of the subject.
 * 
 * @author Team 6: Andy Bare, Imran Chaugule, Michael Huffman, Matt Pearson, Catherine Schell
 * @version 1.0.0
 *
 * 	CSC 480 Section 2
 * 	Fall 2005
 * 	10/1/05
 */
 
import java.io.*;

public class Identity implements Serializable
{
	/*
	 * The name of the identity
	 */
	protected String str_IdentityName;
	
	/* 
	 * The unwrapped image of the identity
	 */
	protected UnwrappedImage uwr_IdentityIris;
	
	/**
	 * Constructs a new identity with the specified name and unwrapped image.
	 * 
	 * @param i The string name of the subject to be stored
	 * @param u The unwrapped image of the subject to be stored
	 */
	public Identity(String i, UnwrappedImage u)
	{
		this.str_IdentityName = i;
		this.uwr_IdentityIris = u;
	}
	
	/**
	 * Returns the name of the identity.
	 *
	 * @return the name of the identity
	 */
	public String getIdentityName()
	{
		return this.str_IdentityName;
	}
	
	/**
	 * Returns the unwrapped image of the identity
	 *
	 * @return the unwrapped image of the identity
	 */
	public UnwrappedImage getIdentityIris()
	{
		return this.uwr_IdentityIris;
	}
		
	/**
	 * Overrides the object toString method
	 *
	 * @return the string representation of the identity (its name)
	 */
	public String toString()
	{
		return this.str_IdentityName;
	}
}

⌨️ 快捷键说明

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