Package javax.media.jai

Examples of javax.media.jai.ROI.intersect()


/* 126 */       ROI dstROI = srcROI.transform(transform);
/*     */
/* 129 */       Rectangle dstBounds = op.getBounds();
/*     */
/* 132 */       if (!dstBounds.contains(dstROI.getBounds())) {
/* 133 */         dstROI = dstROI.intersect(new ROIShape(dstBounds));
/*     */       }
/*     */
/* 137 */       return dstROI;
/*     */     }
/* 139 */     return null;
View Full Code Here


/*     */       {
/*  96 */         srcBounds = new Rectangle(src.getMinX(), src.getMinY(), src.getWidth(), src.getHeight());
/*     */       }
/*     */
/* 103 */       if (!srcBounds.contains(srcROI.getBounds())) {
/* 104 */         srcROI = srcROI.intersect(new ROIShape(srcBounds));
/*     */       }
/*     */
/* 108 */       float tx = pb.getFloatParameter(0);
/* 109 */       float ty = pb.getFloatParameter(1);
/*     */
View Full Code Here

/* 116 */       ROI dstROI = srcROI.transform(transform);
/*     */
/* 119 */       Rectangle dstBounds = op.getBounds();
/*     */
/* 122 */       if (!dstBounds.contains(dstROI.getBounds())) {
/* 123 */         dstROI = dstROI.intersect(new ROIShape(dstBounds));
/*     */       }
/*     */
/* 127 */       return dstROI;
/*     */     }
/*     */
View Full Code Here

/*  79 */       ROI srcROI = (ROI)property;
/*     */
/*  82 */       Rectangle srcBounds = new Rectangle(src.getMinX(), src.getMinY(), src.getWidth(), src.getHeight());
/*     */
/*  88 */       if (!srcBounds.contains(srcROI.getBounds())) {
/*  89 */         srcROI = srcROI.intersect(new ROIShape(srcBounds));
/*     */       }
/*     */
/*  93 */       float sx = pb.getFloatParameter(0);
/*  94 */       float sy = pb.getFloatParameter(1);
/*     */
View Full Code Here

/* 101 */       ROI dstROI = srcROI.transform(transform);
/*     */
/* 104 */       Rectangle dstBounds = op.getBounds();
/*     */
/* 107 */       if (!dstBounds.contains(dstROI.getBounds())) {
/* 108 */         dstROI = dstROI.intersect(new ROIShape(dstBounds));
/*     */       }
/*     */
/* 112 */       return dstROI;
/*     */     }
/*     */
View Full Code Here

                        }
   
                        image = BandCombineDescriptor.create(image, matrix, null);
                }
                    thresholdRoi = new ROI(image, threshold);
                    thresholdRoi = thresholdRoi.intersect(sourceROI);
            }
        }
       
        // Copy the background values per the specification.
        this.backgroundValues = new double[numBands];
View Full Code Here

                     src.getHeight());
            }

            // If necessary, clip the ROI to the effective source bounds.
            if(!srcBounds.contains(srcROI.getBounds())) {
                srcROI = srcROI.intersect(new ROIShape(srcBounds));
            }

            // Retrieve the Warp object.
            Warp warp = (Warp)pb.getObjectParameter(0);
View Full Code Here

            roiImage = JAI.create("Warp", paramBlk, localHints);
            ROI dstROI = new ROI(roiImage, 1);

            // If necessary, clip the warped ROI to the destination bounds.
            if(!dstBounds.contains(dstROI.getBounds())) {
                dstROI = dstROI.intersect(new ROIShape(dstBounds));
            }

            // Return the warped and possibly clipped ROI.
            return dstROI;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.