4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License 2
6 * as published by the Free Software Foundation.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 package ini
.trakem2
.display
;
19 import java
.awt
.Image
;
22 * <p>A MipMap is a container for an {@link Image} and its corresponding
23 * inverse <em>x</em>/<em>y</em> scale relative to an original {@link Image}
24 * it was generated from.</p>
26 * <p>In a scale pyramid as used for mipmap generation, the inverse scale for
27 * both <em>x</em> and <em>y</em> is usually<p>
29 * <p><em>s</em> = 2<sup>level</sup></p>
31 * <p>Note that the exact scale cannot be inferred from the sizes of the mipmap
32 * {@link Image} and its origin because the number of pixels is an integer in
33 * both {@link Image Images}.
35 * @author Stephan Saalfeld <saalfeld@mpi-cbg.de>
37 public final class MipMapImage
39 final public Image image
;
40 final public double scaleX
, scaleY
;
42 public MipMapImage( final Image image
, final double scaleX
, final double scaleY
)