亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? imgdatajoiner.java

?? jpeg2000算法實現
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
/* * CVS identifier: * * $Id: ImgDataJoiner.java,v 1.11 2001/01/24 14:58:50 grosbois Exp $ * * Class:                   ImgDataJoiner * * Description:             Get ImgData from different sources * * * * COPYRIGHT: *  * This software module was originally developed by Rapha雔 Grosbois and * Diego Santa Cruz (Swiss Federal Institute of Technology-EPFL); Joel * Askel鰂 (Ericsson Radio Systems AB); and Bertrand Berthelot, David * Bouchard, F閘ix Henry, Gerard Mozelle and Patrice Onno (Canon Research * Centre France S.A) in the course of development of the JPEG2000 * standard as specified by ISO/IEC 15444 (JPEG 2000 Standard). This * software module is an implementation of a part of the JPEG 2000 * Standard. Swiss Federal Institute of Technology-EPFL, Ericsson Radio * Systems AB and Canon Research Centre France S.A (collectively JJ2000 * Partners) agree not to assert against ISO/IEC and users of the JPEG * 2000 Standard (Users) any of their rights under the copyright, not * including other intellectual property rights, for this software module * with respect to the usage by ISO/IEC and Users of this software module * or modifications thereof for use in hardware or software products * claiming conformance to the JPEG 2000 Standard. Those intending to use * this software module in hardware or software products are advised that * their use may infringe existing patents. The original developers of * this software module, JJ2000 Partners and ISO/IEC assume no liability * for use of this software module or modifications thereof. No license * or right to this software module is granted for non JPEG 2000 Standard * conforming products. JJ2000 Partners have full right to use this * software module for his/her own purpose, assign or donate this * software module to any third party and to inhibit third parties from * using this software module for non JPEG 2000 Standard conforming * products. This copyright notice must be included in all copies or * derivative works of this software module. *  * Copyright (c) 1999/2000 JJ2000 Partners. * */package jj2000.j2k.image;import jj2000.j2k.*;/** * This class implements the ImgData interface and allows to obtain data from * different sources. Here, one source is represented by an ImgData and a * component index. The typical use of this class is when the encoder needs * different components (Red, Green, Blue, alpha, ...) from different input * files (i.e. from different ImgReader objects). * * <P>All input ImgData must not be tiled (i.e. must have only 1 tile) and the * image origin must be the canvas origin. The different inputs can have * different dimensions though (this will lead to different subsampling * factors for each component). * * <P>The input ImgData and component index list must be defined when * constructing this class and can not be modified later. * * @see ImgData * * @see jj2000.j2k.image.input.ImgReader * */public class ImgDataJoiner implements BlkImgDataSrc {    /** The width of the image */    private int w;    /** The height of the image */    private int h;    /** The number of components in the image */    private int nc;    /** The list of input ImgData */    private BlkImgDataSrc[] imageData;    /** The component index associated with each ImgData */    private int[] compIdx;    /** The subsampling factor along the horizontal direction, for every     * component */    private int[] subsX;    /** The subsampling factor along the vertical direction, for every     * component */    private int[] subsY;    /**     * Class constructor. Each input BlkImgDataSrc and its component index     * must appear in the order wanted for the output components.<br>     *     * <u>Example:</u> Reading R,G,B components from 3 PGM files.<br>     * <tt>     * BlkImgDataSrc[] idList = <br>     *   {<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("R.pgm", "r")),<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("G.pgm", "r")),<br>     *   new ImgReaderPGM(new BEBufferedRandomAccessFile("B.pgm", "r"))<br>     *   };<br>     * int[] compIdx = {0,0,0};<br>     * ImgDataJoiner idj = new ImgDataJoiner(idList, compIdx);     * </tt>     *     * <p>Of course, the 2 arrays must have the same length (This length is     * the number of output components). The image width and height are     * definded to be the maximum values of all the input ImgData.     *     * @param imD The list of input BlkImgDataSrc in an array.     *     * @param cIdx The component index associated with each ImgData.     * */    public ImgDataJoiner(BlkImgDataSrc[] imD, int[] cIdx){        int i;        int maxW, maxH;	// Initializes	imageData = imD;	compIdx = cIdx;	if(imageData.length != compIdx.length)	    throw new IllegalArgumentException("imD and cIdx must have the"+					       " same length");	nc = imD.length;        subsX = new int[nc];        subsY = new int[nc];        // Check that no source is tiled and that the image origin is at the        // canvas origin.        for(i=0; i<nc; i++) {            if (imD[i].getNumTiles() != 1 ||                imD[i].getULX(cIdx[i]) != 0 || imD[i].getULY(cIdx[i]) != 0) {                throw                    new IllegalArgumentException("All input components must, "+                                                 "not use tiles and must have "+                                                 "the origin at the canvas "+                                                 "origin");            }        }        // Guess component subsampling factors based on the fact that the        // ceil() operation relates the reference grid size to the component's        // size, through the subsampling factor.        // Mhhh, difficult problem. For now just assume that one of the        // subsampling factors is always 1 and that the component width is        // always larger than its subsampling factor, which covers most of the        // cases. We check the correctness of the solution once found to chek        // out hypothesis.        // Look for max width and height.        maxW = 0;        maxH = 0;	for(i=0; i<nc; i++) {	    if(imD[i].getCompImgWidth(cIdx[i]) > maxW)		maxW = imD[i].getCompImgWidth(cIdx[i]);	    if(imD[i].getCompImgHeight(cIdx[i]) > maxH)		maxH = imD[i].getCompImgHeight(cIdx[i]);	}        // Set the image width and height as the maximum ones	w = maxW;	h = maxH;        // Now get the sumsampling factors and check the subsampling factors,        // just to see if above hypothesis were correct.        for (i=0; i<nc; i++) {            // This calculation only holds if the subsampling factor is less            // than the component width            subsX[i] = (maxW + imD[i].getCompImgWidth(cIdx[i])-1) /                imD[i].getCompImgWidth(cIdx[i]);            subsY[i] = (maxH + imD[i].getCompImgHeight(cIdx[i])-1) /                imD[i].getCompImgHeight(cIdx[i]);            if ((maxW+subsX[i]-1)/subsX[i] !=                imD[i].getCompImgWidth(cIdx[i]) ||                (maxH+subsY[i]-1)/subsY[i] !=                imD[i].getCompImgHeight(cIdx[i])) {                throw new Error("Can not compute component subsampling "+                                "factors: strange subsampling.");            }        }    }    /**     * Returns the overall width of the current tile in pixels. This is the     * tile's width without accounting for any component subsampling.     *     * @return The total current tile's width in pixels.     * */    public int getWidth(){	return w;    }    /**     * Returns the overall height of the current tile in pixels. This is the     * tile's height without accounting for any component subsampling.     *     * @return The total current tile's height in pixels.     * */    public int getHeight(){	return h;    }    /**     * Returns the overall width of the image in pixels. This is the image's     * width without accounting for any component subsampling or tiling.     *     * @return The total image's width in pixels.     * */    public int getImgWidth(){	return w;    }    /**     * Returns the overall height of the image in pixels. This is the image's     * height without accounting for any component subsampling or tiling.     *     * @return The total image's height in pixels.     * */    public int getImgHeight(){	return h;    }    /**     * Returns the number of components in the image.     *     * @return The number of components in the image.     * */    public int getNumComps(){	return nc;    }    /**     * Returns the component subsampling factor in the horizontal direction,     * for the specified component. This is, approximately, the ratio of     * dimensions between the reference grid and the component itself, see the     * 'ImgData' interface desription for details.     *     * @param c The index of the component (between 0 and N-1)     *     * @return The horizontal subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsX(int c) {        return subsX[c];    }    /**     * Returns the component subsampling factor in the vertical direction, for     * the specified component. This is, approximately, the ratio of     * dimensions between the reference grid and the component itself, see the     * 'ImgData' interface desription for details.     *     * @param c The index of the component (between 0 and N-1)     *     * @return The vertical subsampling factor of component 'c'     *     * @see ImgData     * */    public int getCompSubsY(int c) {        return subsY[c];    }    /**     * Returns the width in pixels of the specified component in the     * current tile.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width in pixels of component <tt>c</tt> in the current     * tile.     * */    public int getCompWidth(int c){	return imageData[c].getCompWidth(compIdx[c]);    }    /**     * Returns the height in pixels of the specified component in the current     * tile.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The height in pixels of component <tt>c</tt> in the current     * tile.     * */    public int getCompHeight(int c){	return imageData[c].getCompHeight(compIdx[c]);    }    /**     * Returns the width in pixels of the specified component in the overall     * image.     *     * @param c The index of the component, from 0 to N-1.     *     * @return The width in pixels of component <tt>c</tt> in the overall     * image.     * */    public int getCompImgWidth(int c){	return imageData[c].getCompImgWidth(compIdx[c]);    }    /**     * Returns the height in pixels of the specified component in the     * overall image.     *     * @param n The index of the component, from 0 to N-1.     *     * @return The height in pixels of component <tt>n</tt> in the overall     * image.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91香蕉视频在线| 欧美日韩国产区一| 777奇米四色成人影色区| 久久精品夜色噜噜亚洲a∨| 一区二区三区资源| 成人一区二区在线观看| 91精品婷婷国产综合久久竹菊| 国产欧美精品一区aⅴ影院| 日本不卡视频在线| 欧美日韩一区小说| 综合久久久久久| 国产精品66部| 欧美精品一区二区高清在线观看 | 欧美日韩在线播放三区四区| 久久久久青草大香线综合精品| 亚洲第一福利一区| 91国偷自产一区二区开放时间| 国产亚洲欧美在线| 久久国产麻豆精品| 日韩一卡二卡三卡| 日日摸夜夜添夜夜添精品视频| 色香蕉久久蜜桃| 亚洲日本va午夜在线电影| 成人美女视频在线观看| 久久久99久久| 成人午夜在线免费| 欧美极品美女视频| 丁香亚洲综合激情啪啪综合| 国产欧美一区二区三区在线看蜜臀| 久久成人久久爱| 久久影视一区二区| 国产激情91久久精品导航| 久久久久久久久伊人| 精品在线一区二区三区| 欧美成人免费网站| 国产高清久久久| 日本一区二区三区国色天香| 成人精品电影在线观看| 国产精品电影一区二区| 99视频精品全部免费在线| 国产精品久久久久影院色老大| 成+人+亚洲+综合天堂| 中文字幕日韩欧美一区二区三区| 成人国产精品免费网站| 亚洲精品免费一二三区| 欧美午夜在线一二页| 日本aⅴ免费视频一区二区三区| 欧美一区二区三区喷汁尤物| 国产一区欧美一区| 中文字幕av不卡| 91国偷自产一区二区开放时间| 五月激情综合网| 日韩精品一区二区在线观看| 国产一区二区三区视频在线播放| 中文字幕欧美日本乱码一线二线| 色综合网色综合| 蜜桃一区二区三区在线观看| 国产欧美日韩亚州综合| 在线观看一区二区视频| 青青青伊人色综合久久| 久久精品水蜜桃av综合天堂| 一本一道波多野结衣一区二区| 偷偷要91色婷婷| 日本一区二区三区在线观看| 欧美在线免费观看亚洲| 黄页网站大全一区二区| 亚洲欧美综合在线精品| 日韩午夜激情av| 99精品偷自拍| 老色鬼精品视频在线观看播放| 国产精品免费aⅴ片在线观看| 欧美日韩国产免费一区二区 | 日本一区二区免费在线| 色88888久久久久久影院按摩| 免费的国产精品| 亚洲另类在线制服丝袜| 精品少妇一区二区三区日产乱码 | 国产欧美一区二区三区在线看蜜臀| 91蝌蚪porny| 久久国产精品第一页| 亚洲精品免费播放| 国产拍揄自揄精品视频麻豆| 欧美日韩国产免费| 91丨九色丨黑人外教| 免费人成网站在线观看欧美高清| 中文字幕在线一区| 精品成人a区在线观看| 在线观看亚洲成人| 成人黄色av网站在线| 韩国成人精品a∨在线观看| 亚洲风情在线资源站| 国产精品免费视频一区| www国产成人| 91精品婷婷国产综合久久性色| 91国模大尺度私拍在线视频| 成人毛片视频在线观看| 国产老妇另类xxxxx| 日本免费新一区视频| 亚洲午夜一二三区视频| 亚洲婷婷在线视频| 久久久久久免费| 亚洲v中文字幕| 中文字幕巨乱亚洲| 日韩欧美成人激情| 91精品国产综合久久精品| 99精品视频免费在线观看| 国产成人亚洲综合a∨婷婷| 久久精品国产澳门| 日日嗨av一区二区三区四区| 一区二区高清在线| 一区二区三区免费观看| 亚洲欧美另类图片小说| 亚洲欧洲www| 亚洲人妖av一区二区| 国产精品久久一卡二卡| 国产精品美日韩| 中文字幕在线一区免费| 亚洲免费观看高清完整版在线| 中文字幕一区不卡| 亚洲另类春色校园小说| 亚洲国产你懂的| 最新热久久免费视频| 欧美mv和日韩mv的网站| 欧美精品一区二区三区高清aⅴ | 精品久久久久久最新网址| 制服丝袜亚洲网站| 日韩一区二区影院| 精品久久久久久久久久久院品网 | 一区二区在线电影| 亚洲第一激情av| 男女男精品视频| 国产精品一线二线三线精华| 风间由美性色一区二区三区| 99re这里都是精品| 91免费观看国产| 欧美老肥妇做.爰bbww| 精品区一区二区| 国产精品久久免费看| 综合欧美亚洲日本| 日韩国产欧美在线视频| 国产二区国产一区在线观看| 99久久久无码国产精品| 欧美日精品一区视频| 精品国产乱码久久久久久免费| 久久久久久9999| 一区二区三区在线影院| 美女久久久精品| 99久久精品免费看国产免费软件| 欧美视频自拍偷拍| www国产精品av| 亚洲免费视频成人| 麻豆一区二区三| 97久久精品人人做人人爽50路| 欧美欧美欧美欧美| 国产精品天干天干在线综合| 亚洲成人动漫一区| www.综合网.com| 日韩精品一区二区三区视频播放| 国产精品久久久久久久久快鸭 | 一区二区三区精品久久久| 免费人成黄页网站在线一区二区| 成熟亚洲日本毛茸茸凸凹| 欧美午夜精品久久久久久超碰| 国产亚洲一区字幕| 亚洲成人tv网| 97se狠狠狠综合亚洲狠狠| 精品88久久久久88久久久| 亚洲最新在线观看| 国产成人av一区二区三区在线| 欧美视频在线一区二区三区| 国产精品三级av| 麻豆成人免费电影| 欧美精三区欧美精三区| 亚洲欧美国产毛片在线| 国产乱子伦视频一区二区三区| 欧美日韩国产首页在线观看| 日韩理论电影院| 成人免费高清在线| www国产成人免费观看视频 深夜成人网| 亚洲国产另类精品专区| av不卡在线播放| 国产日韩av一区| 国产一区二区三区av电影| 欧美大肚乱孕交hd孕妇| 日日夜夜免费精品| 精品视频在线视频| 樱花影视一区二区| 92精品国产成人观看免费| 日本一区二区高清| 国产精品一二三四五| 久久蜜桃av一区二区天堂| 蜜桃视频一区二区| 日韩写真欧美这视频| 日韩激情视频在线观看| 欧美另类videos死尸| 亚洲第一福利一区| 欧美精品tushy高清| 日韩在线a电影| 91精品国产综合久久久久久漫画 | 日韩精品一区二区三区中文不卡|