Added Eslint and husky (#1062)

This commit is contained in:
aashna27
2019-05-11 20:09:15 +05:30
committed by Jeffrey Warren
parent 0c3d7be7e2
commit c784de0c19
203 changed files with 3288 additions and 3250 deletions

View File

@@ -19,8 +19,8 @@ module.exports = function Ndvi(options, UI) {
var step = this;
function changePixel(r, g, b, a) {
if (options.filter == "red") var ndvi = (b - r) / (1.00 * b + r);
if (options.filter == "blue") var ndvi = (r - b) / (1.00 * b + r);
if (options.filter == 'red') var ndvi = (b - r) / (1.00 * b + r);
if (options.filter == 'blue') var ndvi = (r - b) / (1.00 * b + r);
var x = 255 * (ndvi + 1) / 2;
return [x, x, x, a];
}
@@ -55,5 +55,5 @@ module.exports = function Ndvi(options, UI) {
draw: draw,
output: output,
UI: UI
}
}
};
};