| | |
| | | for (int y = 0; y < height; y++) { |
| | | int offset = x + y * width; |
| | | //if (Float.isNaN(buffer[offset]) || buffer[offset] < -999 || buffer[offset] < minHeight) continue; |
| | | if (Float.isNaN(buffer[offset]) || buffer[offset] <= 0.001 || Float.isNaN(ts[offset])) continue; |
| | | if (Float.isNaN(buffer[offset]) || buffer[offset] <= 0.00001 || Float.isNaN(ts[offset])) continue; |
| | | |
| | | //double X = transform[0] + x * transform[1] + y * transform[2]; |
| | | //double Y = transform[3] + x * transform[4] + y * transform[5]; |
| | |
| | | int offset = x + y * width; |
| | | float fx = ComHelper.getFloatValue(vxBuffer[offset]); |
| | | float fy = ComHelper.getFloatValue(vyBuffer[offset]); |
| | | if (Float.isNaN(fx) && Float.isNaN(fy) || (fx == 0 && fy == 0)) continue; |
| | | if (Float.isNaN(fx) && Float.isNaN(fy) || (fx == 0.00001 && fy == 0.00001)) continue; |
| | | |
| | | fx = Float.isNaN(fx) ? 0 : fx; |
| | | fy = Float.isNaN(fy) ? 0 : fy; |