lib.core
Class FractalModel
java.lang.Object
lib.core.FractalModel
- All Implemented Interfaces:
- java.io.Serializable
public class FractalModel
- extends java.lang.Object
- implements java.io.Serializable
a fractal model represents the compressed form of the image.
from <Range, <Domain, Transform>>
..to <Domain, <Transform, {Range}>>
or from:
Point1 - Domain1 - Transform1
Point2 - Domain2 - Transform1
Point3 - Domain1 - Transform2
Point4 - Domain1 - Transform2
Point5 - Domain2 - Transform1
to:
Domain1 -[ Transform1 -[ Point1 ]]
....... .[ Transform2 -[ Point3 ]
....... ............. .[ Point4 ]]
Domain2 -[ Transform1 -[ Point2 ]
....... ............. .[ Point5 ]]
in other words, instead of storing for each range the transform
and the domain, we store the domain once, along with a set of
transforms, with each transform, we store a set of points that
represent the position of the ranges in the original image.
- See Also:
Compressor
,
Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FractalModel
public FractalModel(java.util.Map<Point,java.util.Map.Entry<java.awt.image.BufferedImage,ImageTransform>> simplemodel)
getModel
public java.util.Map<ImageHolder,java.util.Map<ImageTransform,java.util.Set<Point>>> getModel()