Digital Image Processing (using Java)
Digital Image Processing (using Java)
Digital Image Processing (using Java)
- No tags were found...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
(p.244)LISTING 9.3 A method to calculate the bounding box of a transformed image.public static Rectangle2D getBoundingBox(Buffered<strong>Image</strong> image, AffineTransformtransformation){// Apply transformation to image corners}int xmax = image.getWidth()-1;int ymax = image.getHeight()-1;Point2D[] corners = new Point2D.Double[4];Corners[0] = new Point2D.Double(, );• java Rotate1 input.png output.png 0 62.5• java Rotate2 input.png output.png ↑interp. ↑angle• java AffineTransformTool matthead.png(p.247)- 62 -