Package jjil.core

Examples of jjil.core.RgbRegion$MeanVar


                                r.getWidth(),
                                r.getHeight() - nHalfHeight);
                        vecRNotOk.addElement(rNew);
                    }
                } else {
                    RgbRegion reg = new RgbRegion(r, nVar);
                    this.vecROk.addElement(reg);
                }
            } else {
                // region too small, stop splitting
                MeanVar nVar = computeVariance(r);
                    RgbRegion reg = new RgbRegion(r, nVar);
                    this.vecROk.addElement(reg);               
            }
        }
    }
View Full Code Here


        }
        RgbImage rgbImage = new RgbImage(
                this.rgbInput.getWidth(),
                this.rgbInput.getHeight());
        for (Enumeration e = this.vecROk.elements(); e.hasMoreElements();) {
            RgbRegion r = (RgbRegion) e.nextElement();
            int nRgb = RgbVal.toRgb(
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE),
                    (byte)((this.random.nextInt()&0xff)+Byte.MIN_VALUE));
            Rect rect = r.getRect();
            rgbImage = rgbImage.fill(rect, nRgb);
        }
        return rgbImage;
       
    }
View Full Code Here

        }
        RgbImage rgbImage = new RgbImage(
                this.rgbInput.getWidth(),
                this.rgbInput.getHeight());
        for (Enumeration e = this.vecROk.elements(); e.hasMoreElements();) {
            RgbRegion r = (RgbRegion) e.nextElement();
            int nRgb = r.getColor();
            Rect rect = r.getRect();
            rgbImage = rgbImage.fill(rect, nRgb);
        }
        return rgbImage;
    }
View Full Code Here

TOP

Related Classes of jjil.core.RgbRegion$MeanVar

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.