Changeset 23190 in osm for applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
- Timestamp:
- 2010-09-15T18:54:18+02:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/GeorefImage.java
r22230 r23190 30 30 public EastNorth max; 31 31 // bbox of the georeferenced original image (raster only) (inclined if rotated and before cropping) 32 // P[0] is bottom,left then next are clockwise. 32 // P[0] is bottom,left then next are clockwise. 33 33 public EastNorth[] orgRaster = new EastNorth[4]; 34 // bbox of the georeferenced original image (raster only) after cropping 34 // bbox of the georeferenced original image (raster only) after cropping 35 35 public EastNorth[] orgCroppedRaster = new EastNorth[4]; 36 36 // angle with georeferenced original image after rotation (raster images only)(in radian) … … 46 46 public GeorefImage(BufferedImage img, EastNorth min, EastNorth max) { 47 47 image = img; 48 48 49 49 this.min = min; 50 50 this.max = max; … … 70 70 71 71 /** 72 * Recalculate the new bounding box of the image based on the four points provided as parameters. 73 * The new bbox defined in [min.max] will retain the extreme values of both boxes. 72 * Recalculate the new bounding box of the image based on the four points provided as parameters. 73 * The new bbox defined in [min.max] will retain the extreme values of both boxes. 74 74 * @param p1 one of the bounding box corner 75 75 * @param p2 one of the bounding box corner … … 128 128 g.drawLine(croppedPoint[i].x, croppedPoint[i].y, croppedPoint[i+1].x, croppedPoint[i+1].y); 129 129 } 130 /* 130 /* 131 131 //Uncomment this section to display the original image size (before cropping) 132 132 Point[] orgPoint = new Point[5]; … … 212 212 imageOriginalHeight = in.readInt(); 213 213 imageOriginalWidth = in.readInt(); 214 } 214 } 215 215 image = (BufferedImage) ImageIO.read(ImageIO.createImageInputStream(in)); 216 216 updatePixelPer(); … … 276 276 } 277 277 } 278 278 279 279 /** 280 280 * Change this image scale by moving the min,max coordinates around an anchor 281 * @param anchor 281 * @param anchor 282 282 * @param proportion 283 283 */ … … 324 324 angle+=delta_ang; 325 325 } 326 326 327 327 /** 328 328 * Crop the image based on new bbox coordinates adj1 and adj2 (for raster images only).
Note:
See TracChangeset
for help on using the changeset viewer.
