158 |
// TODO The efficiency here can be improved for various data storage |
// TODO The efficiency here can be improved for various data storage |
159 |
// patterns, aka SampleModels. |
// patterns, aka SampleModels. |
160 |
float[] pixel = new float[src.numBands]; |
float[] pixel = new float[src.numBands]; |
161 |
for (int y = src.minY; y < src.height- src.minY; y++) |
for (int y = src.minY; y < src.height + src.minY; y++) |
162 |
for (int x = src.minX; x < src.width - src.minX; x++) |
for (int x = src.minX; x < src.width + src.minX; x++) |
163 |
{ |
{ |
164 |
src.getPixel(x, y, pixel); |
src.getPixel(x, y, pixel); |
165 |
for (int b = 0; b < src.numBands; b++) |
for (int b = 0; b < src.numBands; b++) |