Revision 27361 trunk/libraries/libRaster/src/org/gvsig/raster/buffer/BufferInterpolation.java
BufferInterpolation.java | ||
---|---|---|
924 | 924 |
* @param y |
925 | 925 |
* @param band |
926 | 926 |
* @return |
927 |
* @throws InterruptedException |
|
927 | 928 |
*/ |
928 |
private double[][] get4x4Submatrix(int x, int y, int band) { |
|
929 |
private double[][] get4x4Submatrix(int x, int y, int band) throws InterruptedException {
|
|
929 | 930 |
int ix, iy, px, py; |
930 | 931 |
double[][] z_xy = new double[4][4]; |
931 | 932 |
|
... | ... | |
955 | 956 |
* @param y Coordenada Y del pixel inicial |
956 | 957 |
* @param band N?mero de banda. |
957 | 958 |
* @return Kernel solicitado en forma de array. |
959 |
* @throws InterruptedException |
|
958 | 960 |
*/ |
959 |
private double[] getKernelByte(int x, int y, int band) { |
|
961 |
private double[] getKernelByte(int x, int y, int band) throws InterruptedException {
|
|
960 | 962 |
double[] d = new double[4]; |
961 | 963 |
d[0] = (buffer.getElemByte(y, x, band) & 0xff); |
962 | 964 |
int nextX = ((x + 1) >= buffer.getWidth()) ? x : (x + 1); |
... | ... | |
975 | 977 |
* @param y Coordenada Y del pixel inicial |
976 | 978 |
* @param band N?mero de banda. |
977 | 979 |
* @return Kernel solicitado en forma de array. |
980 |
* @throws InterruptedException |
|
978 | 981 |
*/ |
979 |
private double[] getKernelShort(int x, int y, int band) { |
|
982 |
private double[] getKernelShort(int x, int y, int band) throws InterruptedException {
|
|
980 | 983 |
double[] d = new double[4]; |
981 | 984 |
d[0] = (buffer.getElemShort(y, x, band) & 0xffff); |
982 | 985 |
int nextX = ((x + 1) >= buffer.getWidth()) ? x : (x + 1); |
... | ... | |
995 | 998 |
* @param y Coordenada Y del pixel inicial |
996 | 999 |
* @param band N?mero de banda. |
997 | 1000 |
* @return Kernel solicitado en forma de array. |
1001 |
* @throws InterruptedException |
|
998 | 1002 |
*/ |
999 |
private double[] getKernelInt(int x, int y, int band) { |
|
1003 |
private double[] getKernelInt(int x, int y, int band) throws InterruptedException {
|
|
1000 | 1004 |
double[] d = new double[4]; |
1001 | 1005 |
d[0] = (buffer.getElemInt(y, x, band) & 0xffffffff); |
1002 | 1006 |
int nextX = ((x + 1) >= buffer.getWidth()) ? x : (x + 1); |
... | ... | |
1015 | 1019 |
* @param y Coordenada Y del pixel inicial |
1016 | 1020 |
* @param band N?mero de banda. |
1017 | 1021 |
* @return Kernel solicitado en forma de array. |
1022 |
* @throws InterruptedException |
|
1018 | 1023 |
*/ |
1019 |
private double[] getKernelFloat(int x, int y, int band) { |
|
1024 |
private double[] getKernelFloat(int x, int y, int band) throws InterruptedException {
|
|
1020 | 1025 |
double[] d = new double[4]; |
1021 | 1026 |
d[0] = buffer.getElemFloat(y, x, band); |
1022 | 1027 |
int nextX = ((x + 1) >= buffer.getWidth()) ? x : (x + 1); |
... | ... | |
1035 | 1040 |
* @param y Coordenada Y del pixel inicial |
1036 | 1041 |
* @param band N?mero de banda. |
1037 | 1042 |
* @return Kernel solicitado en forma de array. |
1043 |
* @throws InterruptedException |
|
1038 | 1044 |
*/ |
1039 |
private double[] getKernelDouble(int x, int y, int band) { |
|
1045 |
private double[] getKernelDouble(int x, int y, int band) throws InterruptedException {
|
|
1040 | 1046 |
double[] d = new double[4]; |
1041 | 1047 |
d[0] = buffer.getElemDouble(y, x, band); |
1042 | 1048 |
int nextX = ((x + 1) >= buffer.getWidth()) ? x : (x + 1); |
Also available in: Unified diff