⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 colormodel.java

📁 图像检索的代码b
💻 JAVA
字号:
/*
 * ColorModel.java
 * Created on 16. April 2003, 10:30
 *
 * Copyright (C) 2003 Florian Ledermann, Vienna University of Technology
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * Contact address: ledermann@ims.tuwien.ac.at
 */

package org.vizir.media;

/**
 * Description: Class representing the color model of media data. Currently,
 * only RGB and YUV are supported.
 *
 * @author flo ledermann ledermann@ims.tuwien.ac.at
 * @version $Id: ColorModel.java,v 1.2 2004/02/12 09:20:20 mr Exp $
 */
public class ColorModel {

	/** RGB color space. */
	public static final int RGB = 0;
	/** YUV color space. */
	public static final int YUV = 1;

	private int colorSpace;

	/**
	 * Creates a new color model.
	 * @param colorSpace The color space, either RGB or YUV.
	 */
	public ColorModel(int colorSpace){
		this.colorSpace = colorSpace;
	}

	/**
	 * Returns the color space.
	 * @return The color space, either RGB or YUV.
	 */
	public int getColorSpace() {
		return colorSpace;
	}

}

⌨️ 快捷键说明

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