Revision 21803
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimIntegerFilter.java | ||
---|---|---|
72 | 72 |
public Object getResult(String name) { |
73 | 73 |
if (name.equals("raster")) |
74 | 74 |
return raster; |
75 |
return result;
|
|
75 |
return null;
|
|
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimShortFilter.java | ||
---|---|---|
72 | 72 |
public Object getResult(String name) { |
73 | 73 |
if (name.equals("raster")) |
74 | 74 |
return raster; |
75 |
return result;
|
|
75 |
return null;
|
|
76 | 76 |
} |
77 | 77 |
|
78 | 78 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimByteFilter.java | ||
---|---|---|
100 | 100 |
*/ |
101 | 101 |
public Object getResult(String name) { |
102 | 102 |
if (name.equals("raster")) |
103 |
return (Object) this.raster; |
|
104 |
else |
|
105 |
return result; |
|
103 |
return this.raster; |
|
104 |
return null; |
|
106 | 105 |
} |
107 | 106 |
} |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimFloatFilter.java | ||
---|---|---|
71 | 71 |
*/ |
72 | 72 |
public Object getResult(String name) { |
73 | 73 |
if (name.equals("raster")) |
74 |
return (Object) this.raster; |
|
75 |
else |
|
76 |
return result; |
|
74 |
return this.raster; |
|
75 |
return null; |
|
77 | 76 |
} |
78 | 77 |
|
79 | 78 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/statistics/TailTrimDoubleFilter.java | ||
---|---|---|
71 | 71 |
*/ |
72 | 72 |
public Object getResult(String name) { |
73 | 73 |
if (name.equals("raster")) |
74 |
return (Object) this.raster; |
|
75 |
else |
|
76 |
return result; |
|
74 |
return this.raster; |
|
75 |
return null; |
|
77 | 76 |
} |
78 | 77 |
|
79 | 78 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/segmentation/FirstDerivativeFilter.java | ||
---|---|---|
194 | 194 |
*/ |
195 | 195 |
public Object getResult(String name) { |
196 | 196 |
if (name.equals("raster")) { |
197 |
if(!exec) |
|
198 |
return (Object) this.raster; |
|
199 |
else |
|
200 |
return (Object) this.rasterResult; |
|
201 |
} else { |
|
202 |
return null; |
|
197 |
if (!exec) |
|
198 |
return this.raster; |
|
199 |
return this.rasterResult; |
|
203 | 200 |
} |
201 |
return null; |
|
204 | 202 |
} |
205 | 203 |
|
206 | 204 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/correction/MedianFilter.java | ||
---|---|---|
98 | 98 |
*/ |
99 | 99 |
public Object getResult(String name) { |
100 | 100 |
if (name.equals("raster")) { |
101 |
if(!exec) |
|
102 |
return (Object) this.raster; |
|
103 |
else |
|
104 |
return (Object) this.rasterResult; |
|
105 |
} else { |
|
106 |
return null; |
|
101 |
if (!exec) |
|
102 |
return this.raster; |
|
103 |
return this.rasterResult; |
|
107 | 104 |
} |
105 |
return null; |
|
108 | 106 |
} |
109 | 107 |
|
110 | 108 |
/* |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/histogramMatching/HistogramMatchingByteFilter.java | ||
---|---|---|
41 | 41 |
|
42 | 42 |
|
43 | 43 |
import org.gvsig.raster.buffer.RasterBuffer; |
44 |
import org.gvsig.raster.dataset.IBuffer; |
|
45 | 44 |
|
46 | 45 |
/** |
47 | 46 |
* Filtro para la aplicaci?n de HistogramMatching a un raster de tipo byte. |
... | ... | |
106 | 105 |
* */ |
107 | 106 |
public Object getResult(String name) { |
108 | 107 |
if (name.equals("raster")) |
109 |
return (IBuffer)rasterResult;
|
|
108 |
return rasterResult; |
|
110 | 109 |
return null; |
111 | 110 |
} |
112 | 111 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionFilter.java | ||
---|---|---|
115 | 115 |
|
116 | 116 |
public Object getResult(String name) { |
117 | 117 |
if (name.equals("raster")) { |
118 |
if(!exec) |
|
119 |
return (Object) this.raster; |
|
120 |
else |
|
121 |
return (Object) this.rasterResult; |
|
122 |
} else { |
|
123 |
return null; |
|
118 |
if (!exec) |
|
119 |
return this.raster; |
|
120 |
return this.rasterResult; |
|
124 | 121 |
} |
122 |
return null; |
|
125 | 123 |
} |
126 | 124 |
|
127 | 125 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionShortFilter.java | ||
---|---|---|
71 | 71 |
* */ |
72 | 72 |
public Object getResult(String name) { |
73 | 73 |
if (name.equals("raster")) |
74 |
return (Object) this.rasterResult;
|
|
74 |
return this.rasterResult; |
|
75 | 75 |
return null; |
76 | 76 |
} |
77 | 77 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionByteFilter.java | ||
---|---|---|
137 | 137 |
* */ |
138 | 138 |
public Object getResult(String name) { |
139 | 139 |
if (name.equals("raster")) |
140 |
return (Object) this.rasterResult;
|
|
141 |
return null;
|
|
140 |
return this.rasterResult; |
|
141 |
return null; |
|
142 | 142 |
} |
143 | 143 |
} |
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionFloatFilter.java | ||
---|---|---|
111 | 111 |
* */ |
112 | 112 |
public Object getResult(String name) { |
113 | 113 |
if (name.equals("raster")) |
114 |
return (Object) this.rasterResult;
|
|
114 |
return this.rasterResult; |
|
115 | 115 |
return null; |
116 | 116 |
} |
117 | 117 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionDoubleFilter.java | ||
---|---|---|
110 | 110 |
* */ |
111 | 111 |
public Object getResult(String name) { |
112 | 112 |
if (name.equals("raster")) |
113 |
return (Object) this.rasterResult;
|
|
113 |
return this.rasterResult; |
|
114 | 114 |
return null; |
115 | 115 |
} |
116 | 116 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/convolution/ConvolutionIntegerFilter.java | ||
---|---|---|
72 | 72 |
* */ |
73 | 73 |
public Object getResult(String name) { |
74 | 74 |
if (name.equals("raster")) |
75 |
return (Object) this.rasterResult;
|
|
75 |
return this.rasterResult; |
|
76 | 76 |
return null; |
77 | 77 |
} |
78 | 78 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/LinearStretchEnhancementFilter.java | ||
---|---|---|
175 | 175 |
* @see org.gvsig.raster.grid.filter.RasterFilter#getResult(java.lang.String) |
176 | 176 |
*/ |
177 | 177 |
public Object getResult(String name) { |
178 |
if (name.equals("raster")) |
|
179 |
if(!exec) |
|
180 |
return (Object) this.raster;
|
|
181 |
else
|
|
182 |
return (Object) this.rasterResult;
|
|
178 |
if (name.equals("raster")) {
|
|
179 |
if (!exec)
|
|
180 |
return this.raster; |
|
181 |
return this.rasterResult;
|
|
182 |
}
|
|
183 | 183 |
return null; |
184 | 184 |
} |
185 | 185 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/LinearEnhancementFilter.java | ||
---|---|---|
163 | 163 |
* @see org.gvsig.raster.grid.filter.RasterFilter#getResult(java.lang.String) |
164 | 164 |
*/ |
165 | 165 |
public Object getResult(String name) { |
166 |
if (name.equals("raster")) |
|
167 |
if(!exec) |
|
168 |
return (Object) this.raster;
|
|
169 |
else
|
|
170 |
return (Object) this.rasterResult;
|
|
166 |
if (name.equals("raster")) {
|
|
167 |
if (!exec)
|
|
168 |
return this.raster; |
|
169 |
return this.rasterResult;
|
|
170 |
}
|
|
171 | 171 |
return null; |
172 | 172 |
} |
173 | 173 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/ContrastFilter.java | ||
---|---|---|
117 | 117 |
* @see org.gvsig.raster.grid.filter.enhancement.ContrastFilter#getResult(java.lang.String) |
118 | 118 |
*/ |
119 | 119 |
public Object getResult(String name) { |
120 |
if (name.equals("raster")) |
|
121 |
if(!exec) |
|
122 |
return (Object) this.raster;
|
|
123 |
else
|
|
124 |
return (Object) this.rasterResult;
|
|
120 |
if (name.equals("raster")) {
|
|
121 |
if (!exec)
|
|
122 |
return this.raster; |
|
123 |
return this.rasterResult;
|
|
124 |
}
|
|
125 | 125 |
return null; |
126 | 126 |
} |
127 | 127 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/EqualizationFilter.java | ||
---|---|---|
271 | 271 |
* @see org.gvsig.raster.grid.filter.RasterFilter#getResult(java.lang.String) |
272 | 272 |
*/ |
273 | 273 |
public Object getResult(String name) { |
274 |
if (name.equals("raster")) |
|
275 |
if(!exec) |
|
276 |
return (Object) this.raster;
|
|
277 |
else
|
|
278 |
return (Object) this.rasterResult;
|
|
274 |
if (name.equals("raster")) {
|
|
275 |
if (!exec)
|
|
276 |
return this.raster; |
|
277 |
return this.rasterResult;
|
|
278 |
}
|
|
279 | 279 |
return null; |
280 | 280 |
} |
281 | 281 |
|
trunk/libraries/libRaster/src/org/gvsig/raster/grid/filter/enhancement/BrightnessFilter.java | ||
---|---|---|
119 | 119 |
* @see org.gvsig.raster.grid.filter.enhancement.BrightnessFilter#getResult(java.lang.String) |
120 | 120 |
*/ |
121 | 121 |
public Object getResult(String name) { |
122 |
if (name.equals("raster")) |
|
123 |
if(!exec) |
|
124 |
return (Object) this.raster;
|
|
125 |
else
|
|
126 |
return (Object) this.rasterResult;
|
|
122 |
if (name.equals("raster")) {
|
|
123 |
if (!exec)
|
|
124 |
return this.raster; |
|
125 |
return this.rasterResult;
|
|
126 |
}
|
|
127 | 127 |
return null; |
128 | 128 |
} |
129 | 129 |
|
Also available in: Unified diff