Java Doc for WarpGeneralPolynomial.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.Warp
      javax.media.jai.WarpPolynomial
         javax.media.jai.WarpGeneralPolynomial

WarpGeneralPolynomial
final public class WarpGeneralPolynomial extends WarpPolynomial (Code)
A general polynomial-based description of an image warp.

The mapping is defined by two bivariate polynomial functions X(x, y) and Y(x, y) that define the source X and Y positions that map to a given destination (x, y) pixel coordinate.

The functions X(x, y) and Y(x, y) have the form:

 SUM{i = 0 to n} {SUM{j = 0 to i}{a_ij*x^(i - j)*y^j}}
 

See Also:   WarpPolynomial



Constructor Summary
public  WarpGeneralPolynomial(float[] xCoeffs, float[] yCoeffs, float preScaleX, float preScaleY, float postScaleX, float postScaleY)
     Constructs a WarpGeneralPolynomial with a given transform mapping destination pixels into source space.
public  WarpGeneralPolynomial(float[] xCoeffs, float[] yCoeffs)
     Constructs a WarpGeneralPolynomial with pre- and post-scale factors of 1.

Method Summary
public  float[]warpSparseRect(int x, int y, int width, int height, int periodX, int periodY, float[] destRect)
     Computes the source subpixel positions for a given rectangular destination region, subsampled with an integral period.
Parameters:
  x - The minimum X coordinate of the destination region.
Parameters:
  y - The minimum Y coordinate of the destination region.
Parameters:
  width - The width of the destination region.
Parameters:
  height - The height of the destination region.
Parameters:
  periodX - The horizontal sampling period.
Parameters:
  periodY - The vertical sampling period.
Parameters:
  destRect - An int array containing at least2*((width+periodX-1)/periodX)*((height+periodY-1)/periodY)elements, or null.


Constructor Detail
WarpGeneralPolynomial
public WarpGeneralPolynomial(float[] xCoeffs, float[] yCoeffs, float preScaleX, float preScaleY, float postScaleX, float postScaleY)(Code)
Constructs a WarpGeneralPolynomial with a given transform mapping destination pixels into source space. Note that this is a backward mapping as opposed to the forward mapping used in AffineOpImage.

The xCoeffs and yCoeffs parameters must contain the same number of coefficients, (n + 1)(n + 2)/2, for some n, where n is the non-negative degree power of the polynomial. The coefficients, in order, are associated with the terms:

 1, x, y, x^2, x*y, y^2, ..., x^n, x^(n - 1)*y, ..., x*y^(n - 1), y^n
 
and coefficients of value 0 cannot be omitted.

The destination pixel coordinates (the arguments to the X() and Y() functions) are given in normal integral pixel coordinates, while the output of the functions is given in fixed-point, subpixel coordinates with a number of fractional bits specified by the subsampleBitsH and subsampleBitsV parameters.
Parameters:
  xCoeffs - The destination to source transform coefficients forthe X coordinate.
Parameters:
  yCoeffs - The destination to source transform coefficients forthe Y coordinate.
Parameters:
  preScaleX - The scale factor to apply to input (dst) X positions.
Parameters:
  preScaleY - The scale factor to apply to input (dst) Y positions.
Parameters:
  postScaleX - The scale factor to apply to output (src) X positions.
Parameters:
  postScaleY - The scale factor to apply to output (src) Y positions.
throws:
  IllegalArgumentException - if arrays xCoeffs and yCoeffs do nothave the correct number of entries.




WarpGeneralPolynomial
public WarpGeneralPolynomial(float[] xCoeffs, float[] yCoeffs)(Code)
Constructs a WarpGeneralPolynomial with pre- and post-scale factors of 1.
Parameters:
  xCoeffs - The destination to source transform coefficients forthe X coordinate.
Parameters:
  yCoeffs - The destination to source transform coefficients forthe Y coordinate.
throws:
  IllegalArgumentException - if arrays xCoeffs and yCoeffs do nothave the correct number of entries.




Method Detail
warpSparseRect
public float[] warpSparseRect(int x, int y, int width, int height, int periodX, int periodY, float[] destRect)(Code)
Computes the source subpixel positions for a given rectangular destination region, subsampled with an integral period.
Parameters:
  x - The minimum X coordinate of the destination region.
Parameters:
  y - The minimum Y coordinate of the destination region.
Parameters:
  width - The width of the destination region.
Parameters:
  height - The height of the destination region.
Parameters:
  periodX - The horizontal sampling period.
Parameters:
  periodY - The vertical sampling period.
Parameters:
  destRect - An int array containing at least2*((width+periodX-1)/periodX)*((height+periodY-1)/periodY)elements, or null. If null, anew array will be constructed. a reference to the destRect parameter if it isnon-null, or a new int array of length2*width*height otherwise.
throws:
  ArrayBoundsException - if destRect array is too small



Fields inherited from javax.media.jai.WarpPolynomial
protected int degree(Code)(Java Doc)
protected float postScaleX(Code)(Java Doc)
protected float postScaleY(Code)(Java Doc)
protected float preScaleX(Code)(Java Doc)
protected float preScaleY(Code)(Java Doc)
protected float[] xCoeffs(Code)(Java Doc)
protected float[] yCoeffs(Code)(Java Doc)

Methods inherited from javax.media.jai.WarpPolynomial
public static WarpPolynomial createWarp(float[] sourceCoords, int sourceOffset, float[] destCoords, int destOffset, int numCoords, float preScaleX, float preScaleY, float postScaleX, float postScaleY, int degree)(Code)(Java Doc)
public float[][] getCoeffs()(Code)(Java Doc)
public int getDegree()(Code)(Java Doc)
public float getPostScaleX()(Code)(Java Doc)
public float getPostScaleY()(Code)(Java Doc)
public float getPreScaleX()(Code)(Java Doc)
public float getPreScaleY()(Code)(Java Doc)
public float[] getXCoeffs()(Code)(Java Doc)
public float[] getYCoeffs()(Code)(Java Doc)
public Point2D mapDestPoint(Point2D destPt)(Code)(Java Doc)

Methods inherited from javax.media.jai.Warp
public Point2D mapDestPoint(Point2D destPt)(Code)(Java Doc)
public Rectangle mapDestRect(Rectangle destRect)(Code)(Java Doc)
public Point2D mapSourcePoint(Point2D sourcePt)(Code)(Java Doc)
public Rectangle mapSourceRect(Rectangle sourceRect)(Code)(Java Doc)
public int[] warpPoint(int x, int y, int subsampleBitsH, int subsampleBitsV, int[] destRect)(Code)(Java Doc)
public float[] warpPoint(int x, int y, float[] destRect)(Code)(Java Doc)
public int[] warpRect(int x, int y, int width, int height, int subsampleBitsH, int subsampleBitsV, int[] destRect)(Code)(Java Doc)
public float[] warpRect(int x, int y, int width, int height, float[] destRect)(Code)(Java Doc)
public int[] warpSparseRect(int x, int y, int width, int height, int periodX, int periodY, int subsampleBitsH, int subsampleBitsV, int[] destRect)(Code)(Java Doc)
abstract public float[] warpSparseRect(int x, int y, int width, int height, int periodX, int periodY, float[] destRect)(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.