Java Doc for ImagePyramid.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » jai » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.jai.ImageMIPMap
      javax.media.jai.ImagePyramid

ImagePyramid
public class ImagePyramid extends ImageMIPMap (Code)
A class implementing the "Pyramid" operation on a RenderedImage. Given a RenderedImage which represents the image at the highest resolution level, the images at lower resolution levels may be derived by performing a specific chain of operations to downsample the image at the higher resolution level repeatedly. Similarly, once an image at a lower resolution level is obtained, the images at higher resolution levels may be retrieved by performing a specific chain of operations to upsample the image at the lower resolution level repeatedly.

When an image is downsampled, the image at the higher resolution level is lost. However, the difference image between the original image and the image obtained by up sampling the downsampled result image is saved. This difference image, combined with the up sampling operations is used to retrieve the image at a higher resolution level from the image at a lower resolution level.

This is a bi-directional operation. A user may request an image at any resolution level greater than or equal to the highest resolution level, which is defined as level 0.

The downSampler is a chain of operations that is used to derive the image at the next lower resolution level from the image at the current resolution level. That is, given an image at resolution level i, downSampler is used to obtain the image at resolution level i+1. The chain may contain one or more operation nodes; however, each node must be a RenderedOp. The parameter points to the last node in the chain. The very first node in the chain must be a RenderedOp that takes one RenderedImage as its source. All other nodes may have multiple sources. When traversing back up the chain, if a node has more than one source, the first source, source0, is used to move up the chain. This parameter is saved by reference.

The upSampler is a chain of operations that is used to derive the image at the next higher resolution level from the image at the current resolution level. That is, given an image at resolution level i, upSampler is used to obtain the image at resolution level i-1. The requirement for this parameter is identical to that of the downSampler parameter.

The differencer is a chain of operations that is used to find the difference between an image at a particular resolution level and the image obtained by first down sampling that image then up sampling the result image of the down sampling operations. The chain may contain one or more operation nodes; however, each node must be a RenderedOp. The parameter points to the last node in the chain. The very first node in the chain must be a RenderedOp that takes two RenderedImages as its sources. When traversing back up the chain, if a node has more than one source, the first source, source0, is used to move up the chain. This parameter is saved by reference.

The combiner is a chain of operations that is used to combine the result image of the up sampling operations and the difference image saved to retrieve an image at a higher resolution level. The requirement for this parameter is identical to that of the differencer parameter.

Reference: "The Laplacian Pyramid as a Compact Image Code" Peter J. Burt and Edward H. Adelson IEEE Transactions on Communications, Vol. COM-31, No. 4, April 1983
See Also:   ImageMIPMap



Field Summary
protected  RenderedOpcombiner
     The operation chain used to combine two images.
protected  RenderedOpdifferencer
     The operation chain used to differ two images.
protected  RenderedOpupSampler
     The operation chain used to derive the higher resolution images.

Constructor Summary
protected  ImagePyramid()
     The default constructor.
public  ImagePyramid(RenderedImage image, RenderedOp downSampler, RenderedOp upSampler, RenderedOp differencer, RenderedOp combiner)
     Constructor.
public  ImagePyramid(RenderedOp downSampler, RenderedOp upSampler, RenderedOp differencer, RenderedOp combiner)
     Constructor.

Method Summary
public  RenderedImagegetDiffImage()
     Returns the difference image between the current image and the image obtained by first down sampling the current image then up sampling the result image of down sampling.
public  RenderedImagegetDownImage()
     Returns the image at the next lower resolution level, obtained by applying the downSampler on the image at the current resolution level.
public  RenderedImagegetImage(int level)
     Returns the image at the specified resolution level.
public  RenderedImagegetUpImage()
     Returns the image at the previous higher resolution level, If the current image is already at level 0, then the current image will be returned without further up sampling.

Field Detail
combiner
protected RenderedOp combiner(Code)
The operation chain used to combine two images.



differencer
protected RenderedOp differencer(Code)
The operation chain used to differ two images.



upSampler
protected RenderedOp upSampler(Code)
The operation chain used to derive the higher resolution images.




Constructor Detail
ImagePyramid
protected ImagePyramid()(Code)
The default constructor.



ImagePyramid
public ImagePyramid(RenderedImage image, RenderedOp downSampler, RenderedOp upSampler, RenderedOp differencer, RenderedOp combiner)(Code)
Constructor. The RenderedOp parameters point to the last operation node in each chain. The first operation in each chain must not have any source images specified; that is, its number of sources must be 0. All input parameters are saved by reference.
Parameters:
  image - The image with the highest resolution.
Parameters:
  downSampler - The operation chain used to derive the lowerresolution images.
Parameters:
  upSampler - The operation chain used to derive the higherresolution images.
Parameters:
  differencer - The operation chain used to differ two images.
Parameters:
  combiner - The operation chain used to combine two images.
throws:
  IllegalArgumentException - if image is null.
throws:
  IllegalArgumentException - if downSampler isnull.
throws:
  IllegalArgumentException - if upSampler isnull.
throws:
  IllegalArgumentException - if differencer isnull.
throws:
  IllegalArgumentException - if combiner isnull.



ImagePyramid
public ImagePyramid(RenderedOp downSampler, RenderedOp upSampler, RenderedOp differencer, RenderedOp combiner)(Code)
Constructor. The RenderedOp parameters point to the last operation node in each chain. The first operation in the downSampler chain must have the image with the highest resolution as its source. The first operation in all other chains must not have any source images specified; that is, its number of sources must be 0. All input parameters are saved by reference.
Parameters:
  downSampler - The operation chain used to derive the lowerresolution images.
Parameters:
  upSampler - The operation chain used to derive the higherresolution images.
Parameters:
  differencer - The operation chain used to differ two images.
Parameters:
  combiner - The operation chain used to combine two images.
throws:
  IllegalArgumentException - if downSampler isnull.
throws:
  IllegalArgumentException - if upSampler isnull.
throws:
  IllegalArgumentException - if differencer isnull.
throws:
  IllegalArgumentException - if combiner isnull.
throws:
  IllegalArgumentException - if downSamplerhas no sources.
throws:
  IllegalArgumentException - if an object other than aRenderedImage is found in thedownSampler chain.




Method Detail
getDiffImage
public RenderedImage getDiffImage()(Code)
Returns the difference image between the current image and the image obtained by first down sampling the current image then up sampling the result image of down sampling. This is done using the differencer op chain. The current level and current image will not be changed.



getDownImage
public RenderedImage getDownImage()(Code)
Returns the image at the next lower resolution level, obtained by applying the downSampler on the image at the current resolution level.



getImage
public RenderedImage getImage(int level)(Code)
Returns the image at the specified resolution level. The requested level must be greater than or equal to 0 or null will be returned. The image is obtained by either down sampling or up sampling the current image.
Parameters:
  level - The specified resolution level.



getUpImage
public RenderedImage getUpImage()(Code)
Returns the image at the previous higher resolution level, If the current image is already at level 0, then the current image will be returned without further up sampling.

The image is obtained by first up sampling the current image, then combine the result image with the previously saved difference image using the combiner op chain.




Fields inherited from javax.media.jai.ImageMIPMap
protected RenderedImage currentImage(Code)(Java Doc)
protected int currentLevel(Code)(Java Doc)
protected RenderedOp downSampler(Code)(Java Doc)
protected PropertyChangeSupportJAI eventManager(Code)(Java Doc)
protected RenderedImage highestImage(Code)(Java Doc)
protected WritablePropertySourceImpl properties(Code)(Java Doc)

Methods inherited from javax.media.jai.ImageMIPMap
public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
protected RenderedOp duplicate(RenderedOp op, Vector images)(Code)(Java Doc)
public RenderableImage getAsRenderable(int numImages, float minX, float minY, float height)(Code)(Java Doc)
public RenderableImage getAsRenderable()(Code)(Java Doc)
public RenderedImage getCurrentImage()(Code)(Java Doc)
public int getCurrentLevel()(Code)(Java Doc)
public RenderedImage getDownImage()(Code)(Java Doc)
public RenderedImage getImage(int level)(Code)(Java Doc)
public Object getProperty(String name)(Code)(Java Doc)
public Class getPropertyClass(String name)(Code)(Java Doc)
public String[] getPropertyNames()(Code)(Java Doc)
public String[] getPropertyNames(String prefix)(Code)(Java Doc)
public void removeProperty(String name)(Code)(Java Doc)
public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc)
public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc)
public void setProperty(String name, Object value)(Code)(Java Doc)
final protected Vector vectorize(RenderedImage image)(Code)(Java Doc)
final protected Vector vectorize(RenderedImage im1, RenderedImage im2)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.