📄 operations.html
字号:
<CODE> GridCoverage</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/processing/Operations.html#SubsampleAverage(org.opengis.coverage.grid.GridCoverage, double, double, javax.media.jai.Interpolation, javax.media.jai.BorderExtender)">SubsampleAverage</A></B>(GridCoverage source, double scaleX, double scaleY, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/Interpolation.html" title="class or interface in javax.media.jai">Interpolation</A> interpolation, <A HREF="http://java.sun.com/products/java-media/jai/forDevelopers/jai-apidocs/javax/media/jai/BorderExtender.html" title="class or interface in javax.media.jai">BorderExtender</A> be)</CODE><BR> <B>Deprecated.</B> <I>Renamed as <A HREF="../../../../org/geotools/coverage/processing/Operations.html#subsampleAverage(org.opengis.coverage.grid.GridCoverage, double, double, javax.media.jai.Interpolation, javax.media.jai.BorderExtender)"><CODE>subsampleAverage</CODE></A> (lower case "s").</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Coverage</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/processing/Operations.html#subtract(org.opengis.coverage.Coverage, double[])">subtract</A></B>(Coverage source, double[] constants)</CODE><BR> Subtracts constants (one for each band) from every sample values of the source coverage.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> Coverage</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../org/geotools/coverage/processing/Operations.html#subtractFrom(org.opengis.coverage.Coverage, double[])">subtractFrom</A></B>(Coverage source, double[] constants)</CODE><BR> Subtracts every sample values of the source coverage from constants (one for each band).</TD></TR></TABLE> <A NAME="methods_inherited_from_class_Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="DEFAULT"><!-- --></A><H3>DEFAULT</H3><PRE>public static final <A HREF="../../../../org/geotools/coverage/processing/Operations.html" title="class in org.geotools.coverage.processing">Operations</A> <B>DEFAULT</B></PRE><DL><DD>The default instance.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Operations(java.awt.RenderingHints)"><!-- --></A><H3>Operations</H3><PRE>public <B>Operations</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/RenderingHints.html" title="class or interface in java.awt">RenderingHints</A> hints)</PRE><DL><DD>Creates a new instance using the specified hints.<P><DT><B>Parameters:</B><DD><CODE>hints</CODE> - The hints, or if none.</DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="add(org.opengis.coverage.Coverage, double[])"><!-- --></A><H3>add</H3><PRE>public Coverage <B>add</B>(Coverage source, double[] constants) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Adds constants (one for each band) to every sample values of the source coverage.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to add to each band.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/AddConst.html" title="class in org.geotools.coverage.processing.operation"><CODE>AddConst</CODE></A></DL></DD></DL><HR><A NAME="subtract(org.opengis.coverage.Coverage, double[])"><!-- --></A><H3>subtract</H3><PRE>public Coverage <B>subtract</B>(Coverage source, double[] constants) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Subtracts constants (one for each band) from every sample values of the source coverage.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to subtract to each band.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/SubtractConst.html" title="class in org.geotools.coverage.processing.operation"><CODE>SubtractConst</CODE></A></DL></DD></DL><HR><A NAME="subtractFrom(org.opengis.coverage.Coverage, double[])"><!-- --></A><H3>subtractFrom</H3><PRE>public Coverage <B>subtractFrom</B>(Coverage source, double[] constants) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Subtracts every sample values of the source coverage from constants (one for each band).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to subtract from.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/SubtractFromConst.html" title="class in org.geotools.coverage.processing.operation"><CODE>SubtractFromConst</CODE></A></DL></DD></DL><HR><A NAME="multiply(org.opengis.coverage.Coverage, double[])"><!-- --></A><H3>multiply</H3><PRE>public Coverage <B>multiply</B>(Coverage source, double[] constants) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Multiplies every sample values of the source coverage by constants (one for each band).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to multiply to each band.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/MultiplyConst.html" title="class in org.geotools.coverage.processing.operation"><CODE>MultiplyConst</CODE></A></DL></DD></DL><HR><A NAME="divideBy(org.opengis.coverage.Coverage, double[])"><!-- --></A><H3>divideBy</H3><PRE>public Coverage <B>divideBy</B>(Coverage source, double[] constants) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Divides every sample values of the source coverage by constants (one for each band).<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to divides by.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/DivideByConst.html" title="class in org.geotools.coverage.processing.operation"><CODE>DivideByConst</CODE></A></DL></DD></DL><HR><A NAME="rescale(org.opengis.coverage.Coverage, double[], double[])"><!-- --></A><H3>rescale</H3><PRE>public Coverage <B>rescale</B>(Coverage source, double[] constants, double[] offsets) throws <A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></PRE><DL><DD>Maps the sample values of a coverage from one range to another range.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>source</CODE> - The source coverage.<DD><CODE>constants</CODE> - The constants to multiply to each band.<DD><CODE>offsets</CODE> - The constants to add to each band.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/geotools/coverage/processing/CoverageProcessingException.html" title="class in org.geotools.coverage.processing">CoverageProcessingException</A></CODE> - if the operation can't be applied.<DT><B>See Also:</B><DD><A HREF="../../../../org/geotools/coverage/processing/operation/Rescale.html" title="class in org.geotools.coverage.processing.operation"><CODE>Rescale</CODE></A></DL></DD></DL><HR><A NAME="invert(org.opengis.coverage.Coverage)"><!-- --></A><H3>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -