(Roi roi2, Overlay overlay2)
| 3454 | } |
| 3455 | |
| 3456 | private void setPointScale(Roi roi2, Overlay overlay2) { |
| 3457 | ImageCanvas ic = getCanvas(); |
| 3458 | if (ic==null) |
| 3459 | return; |
| 3460 | double scale = 1.0/ic.getMagnification(); |
| 3461 | if (scale==1.0) |
| 3462 | return; |
| 3463 | if (roi2!=null && (roi2 instanceof PointRoi)) |
| 3464 | roi2.setFlattenScale(scale); |
| 3465 | if (overlay2!=null) { |
| 3466 | for (int i=0; i<overlay2.size(); i++) { |
| 3467 | roi2 = overlay2.get(i); |
| 3468 | if (roi2!=null && (roi2 instanceof PointRoi)) |
| 3469 | roi2.setFlattenScale(scale); |
| 3470 | } |
| 3471 | } |
| 3472 | } |
| 3473 | |
| 3474 | /** Assigns a LUT (lookup table) to this image. |
| 3475 | * @see ij.io.Opener#openLut |
no test coverage detected