warptransform2d.html

来自「Geotools是一个开源的Java GIS工具包,可利用它来开发符合标准的地理」· HTML 代码 · 共 844 行 · 第 1/4 页

HTML
844
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.4.2_13) on Tue Jun 05 11:36:20 GMT-05:00 2007 --><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><TITLE>WarpTransform2D (Geotools 2.3.x 2.3.2 API)</TITLE><META NAME="keywords" CONTENT="org.geotools.referencing.operation.transform.WarpTransform2D class"><META NAME="keywords" CONTENT="create()"><META NAME="keywords" CONTENT="getWarp()"><META NAME="keywords" CONTENT="getParameterDescriptors()"><META NAME="keywords" CONTENT="getParameterValues()"><META NAME="keywords" CONTENT="getSourceDimensions()"><META NAME="keywords" CONTENT="getTargetDimensions()"><META NAME="keywords" CONTENT="isIdentity()"><META NAME="keywords" CONTENT="transform()"><META NAME="keywords" CONTENT="inverse()"><META NAME="keywords" CONTENT="hashCode()"><META NAME="keywords" CONTENT="equals()"><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="WarpTransform2D (Geotools 2.3.x 2.3.2 API)";}</SCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/WarpTransform2D.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../org/geotools/referencing/operation/transform/VerticalTransform.html" title="class in org.geotools.referencing.operation.transform"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.Provider.html" title="class in org.geotools.referencing.operation.transform"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="WarpTransform2D.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY:&nbsp;<A HREF="#nested_class_summary">NESTED</A>&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">org.geotools.referencing.operation.transform</FONT><BR>Class WarpTransform2D</H2><PRE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>  <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/geotools/referencing/wkt/Formattable.html" title="class in org.geotools.referencing.wkt">Formattable</A>      <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><A HREF="../../../../../org/geotools/referencing/operation/transform/AbstractMathTransform.html" title="class in org.geotools.referencing.operation.transform">AbstractMathTransform</A>          <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by"><B>WarpTransform2D</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD>MathTransform, MathTransform2D, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DD></DL><HR><DL><DT>public class <B>WarpTransform2D</B><DT>extends <A HREF="../../../../../org/geotools/referencing/operation/transform/AbstractMathTransform.html" title="class in org.geotools.referencing.operation.transform">AbstractMathTransform</A><DT>implements MathTransform2D, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/Serializable.html" title="class or interface in java.io">Serializable</A></DL><P>Wraps an arbitrary <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/Warp.html" title="class or interface in javax.media.jai"><CODE>Warp</CODE></A> object as a two-dimensional transform. Calls to <A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.html#transform(float[], int, float[], int, int)">transform</A> methods are forwarded to the <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/Warp.html#warpPoint(int, int, float[])" title="class or interface in javax.media.jai"><CODE>warpPoint</CODE></A> method, or something equivalent. This implies that source coordinates may be rounded to nearest integers before to the transformation is applied. <p> This transform is typically used with <A HREF="../../../../../org/geotools/coverage/processing/operation/Resample.html" title="class in org.geotools.coverage.processing.operation">grid coverage "Resample" operation</A> for reprojecting an image. Source and destination coordinates are usually pixel coordinates in source and target image, which is why this transform may use integer arithmetic. <p> This math transform can be created alone (by invoking its public constructors directly), or it can be created by a factory like <A HREF="../../../../../org/geotools/referencing/operation/transform/LocalizationGrid.html" title="class in org.geotools.referencing.operation.transform"><CODE>LocalizationGrid</CODE></A>. <p> For more information on image warp, see <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-unc/Geom-image-manip.doc.html">Geometric Image Manipulation</A> in the <cite>Programming in Java Advanced Imaging</cite> guide.<P><P><DL><DT><B>Since:</B></DT>  <DD>2.1</DD><DT><B>Author:</B></DT>  <DD>Martin Desruisseaux, Alessio Fabiani</DD><DT><B>See Also:</B><DD><A HREF="../../../../../org/geotools/referencing/operation/transform/LocalizationGrid.html#getPolynomialTransform(int)"><CODE>LocalizationGrid.getPolynomialTransform(int)</CODE></A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/Warp.html" title="class or interface in javax.media.jai"><CODE>Warp</CODE></A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/WarpOpImage.html" title="class or interface in javax.media.jai"><CODE>WarpOpImage</CODE></A>, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/operator/WarpDescriptor.html" title="class or interface in javax.media.jai.operator"><CODE>WarpDescriptor</CODE></A>, <A HREF="../../../../../serialized-form.html#org.geotools.referencing.operation.transform.WarpTransform2D">Serialized Form</A><DT><B>Module:</B></DT><DD><CODE><B>module/referencing</B></CODE> &nbsp; (<A HREF="http://maven.geotools.fr/repository/org/geotools/gt2-referencing/"><CODE>gt2-referencing.jar</CODE></A>) (<A HREF="http://maven.geotools.fr/reports/referencing/index.html">Maven report</A>) (<A HREF="http://svn.geotools.org/geotools/tags/2.3.2/module/referencing/src/org/geotools/referencing/operation/transform/WarpTransform2D.java">SVN head</A>)</DD></DL><HR><P><!-- ======== NESTED CLASS SUMMARY ======== --><A NAME="nested_class_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Nested Class Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;class</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.Provider.html" title="class in org.geotools.referencing.operation.transform">WarpTransform2D.Provider</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The provider for the <A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.html" title="class in org.geotools.referencing.operation.transform"><CODE>WarpTransform2D</CODE></A>. </TD></TR></TABLE>&nbsp;<A NAME="nested_classes_inherited_from_class_org.geotools.referencing.operation.transform.AbstractMathTransform"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Nested classes inherited from class <A HREF="../../../../../org/geotools/referencing/operation/transform/AbstractMathTransform.html" title="class in org.geotools.referencing.operation.transform">AbstractMathTransform</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../org/geotools/referencing/operation/transform/AbstractMathTransform.Inverse.html" title="class in org.geotools.referencing.operation.transform">AbstractMathTransform.Inverse</A></CODE></TD></TR></TABLE>&nbsp;<!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.html#WarpTransform2D(java.awt.geom.Point2D[], java.awt.geom.Point2D[], int)">WarpTransform2D</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A>[]&nbsp;srcCoords,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Point2D.html" title="class or interface in java.awt.geom">Point2D</A>[]&nbsp;dstCoords,                int&nbsp;degree)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a warp transform that approximatively maps the given source coordinates to the given destination coordinates. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../org/geotools/referencing/operation/transform/WarpTransform2D.html#WarpTransform2D(java.awt.geom.Rectangle2D, float[], int, java.awt.geom.Rectangle2D, float[], int, int, int)">WarpTransform2D</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A>&nbsp;srcBounds,                float[]&nbsp;srcCoords,                int&nbsp;srcOffset,                <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/Rectangle2D.html" title="class or interface in java.awt.geom">Rectangle2D</A>&nbsp;dstBounds,                float[]&nbsp;dstCoords,                int&nbsp;dstOffset,                int&nbsp;numCoords,                int&nbsp;degree)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs a warp transform that approximatively maps the given source coordinates to the

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?