Solved Module undefined error (#1104)

* Resolve Module undefined  error

* Lower-case-hyphen module names
This commit is contained in:
aashna27
2019-06-15 23:55:53 +05:30
committed by Jeffrey Warren
parent 70e7876230
commit ec6ce155f5
42 changed files with 42 additions and 42 deletions

View File

@@ -32,8 +32,8 @@ module.exports = {
'ndvi': require('./modules/Ndvi'), 'ndvi': require('./modules/Ndvi'),
'ndvi-colormap': require('./modules/NdviColormap'), 'ndvi-colormap': require('./modules/NdviColormap'),
'noise-reduction': require('./modules/NoiseReduction'), 'noise-reduction': require('./modules/NoiseReduction'),
'paint-bucket': require('./modules/PaintBucket'),
'overlay': require('./modules/Overlay'), 'overlay': require('./modules/Overlay'),
'paint-bucket': require('./modules/PaintBucket'),
'replace-color': require('./modules/ReplaceColor'), 'replace-color': require('./modules/ReplaceColor'),
'resize': require('./modules/Resize'), 'resize': require('./modules/Resize'),
'rotate': require('./modules/Rotate'), 'rotate': require('./modules/Rotate'),

View File

@@ -1,5 +1,5 @@
{ {
"name": "Add QR", "name": "add-qr",
"description": "Adds QR corresponding to the given string", "description": "Adds QR corresponding to the given string",
"url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md", "url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md",
"inputs": { "inputs": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Average", "name": "average",
"description": "Average all pixel color", "description": "Average all pixel color",
"inputs": { "inputs": {
}, },

View File

@@ -1,5 +1,5 @@
{ {
"name": "Blend", "name": "blend",
"description": "Blend two chosen image steps with the given function. Defaults to using the red channel from image 1 and the green and blue and alpha channels of image 2. Easier to use interfaces coming soon!", "description": "Blend two chosen image steps with the given function. Defaults to using the red channel from image 1 and the green and blue and alpha channels of image 2. Easier to use interfaces coming soon!",
"inputs": { "inputs": {
"offset": { "offset": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Blur", "name": "blur",
"description": "Applies a Gaussian blur given by the intensity value", "description": "Applies a Gaussian blur given by the intensity value",
"inputs": { "inputs": {
"blur": { "blur": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Brightness", "name": "brightness",
"description": "Change the brightness of the image by given percent value", "description": "Change the brightness of the image by given percent value",
"inputs": { "inputs": {
"brightness": { "brightness": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Resize Canvas", "name": "canvas-resize",
"description": "This module resizes the canvas and overlays the ouput of the previous step at given location", "description": "This module resizes the canvas and overlays the ouput of the previous step at given location",
"inputs": { "inputs": {
"width": { "width": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Channel", "name": "channel",
"description": "Displays only one color channel of an image -- default is green", "description": "Displays only one color channel of an image -- default is green",
"inputs": { "inputs": {
"channel": { "channel": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Color Temperature", "name": "color-temperature",
"description": "Changes the color temperature of the image.", "description": "Changes the color temperature of the image.",
"inputs": { "inputs": {
"temperature": { "temperature": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Colorbar", "name": "colorbar",
"description": "Generates a colorbar to lay over the image", "description": "Generates a colorbar to lay over the image",
"inputs": { "inputs": {
"colormap": { "colormap": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Colormap", "name": "colormap",
"description": "Maps brightness values (average of red, green & blue) to a given color lookup table, made up of a set of one more color gradients.\n\nFor example, 'cooler' colors like blue could represent low values, while 'hot' colors like red could represent high values.", "description": "Maps brightness values (average of red, green & blue) to a given color lookup table, made up of a set of one more color gradients.\n\nFor example, 'cooler' colors like blue could represent low values, while 'hot' colors like red could represent high values.",
"inputs": { "inputs": {
"colormap": { "colormap": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Contrast", "name": "contrast",
"description": "Change the contrast of the image by given value", "description": "Change the contrast of the image by given value",
"inputs": { "inputs": {
"contrast": { "contrast": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Convolution", "name": "convolution",
"description": "Image Convolution using a given 3x3 kernel matrix <a href='https://en.wikipedia.org/wiki/Kernel_(image_processing)'>Read more</a>", "description": "Image Convolution using a given 3x3 kernel matrix <a href='https://en.wikipedia.org/wiki/Kernel_(image_processing)'>Read more</a>",
"inputs": { "inputs": {
"constantFactor":{ "constantFactor":{

View File

@@ -1,5 +1,5 @@
{ {
"name": "Crop", "name": "crop",
"description": "Crop image to given x, y, w, h in pixels or % , measured from top left", "description": "Crop image to given x, y, w, h in pixels or % , measured from top left",
"url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md", "url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md",
"inputs": { "inputs": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Decode QR", "name": "decode-qr",
"description": "Search for and decode a QR code in the image", "description": "Search for and decode a QR code in the image",
"inputs": { "inputs": {
}, },

View File

@@ -1,5 +1,5 @@
{ {
"name": "Dither", "name": "dither",
"description": "Approximates a color from a mixture of other colors when the required color is not available, creating illusions of the color that is not present actually.<a href='https://en.wikipedia.org/wiki/Dither'>Read more</a>", "description": "Approximates a color from a mixture of other colors when the required color is not available, creating illusions of the color that is not present actually.<a href='https://en.wikipedia.org/wiki/Dither'>Read more</a>",
"inputs": { "inputs": {
"dither": { "dither": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Draw Rectangle", "name": "draw-rectangle",
"description": "It draws a rectangle on the image", "description": "It draws a rectangle on the image",
"inputs": { "inputs": {
"startingX":{ "startingX":{

View File

@@ -1,5 +1,5 @@
{ {
"name": "Dynamic", "name": "dynamic",
"description": "A module which accepts JavaScript math expressions to produce each color channel based on the original image's color. See <a href='https://publiclab.org/wiki/infragram-sandbox'>Infragrammar</a>.", "description": "A module which accepts JavaScript math expressions to produce each color channel based on the original image's color. See <a href='https://publiclab.org/wiki/infragram-sandbox'>Infragrammar</a>.",
"inputs": { "inputs": {
"red": { "red": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Detect Edges", "name": "edge-detect",
"description": "This module detects edges using the Canny method, which first Gaussian blurs the image to reduce noise (amount of blur configurable in settings as `options.blur`), then applies a number of steps to highlight edges, resulting in a greyscale image where the brighter the pixel, the stronger the detected edge.<a href='https://en.wikipedia.org/wiki/Canny_edge_detector'> Read more. </a>", "description": "This module detects edges using the Canny method, which first Gaussian blurs the image to reduce noise (amount of blur configurable in settings as `options.blur`), then applies a number of steps to highlight edges, resulting in a greyscale image where the brighter the pixel, the stronger the detected edge.<a href='https://en.wikipedia.org/wiki/Canny_edge_detector'> Read more. </a>",
"inputs": { "inputs": {
"blur": { "blur": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Exposure", "name": "exposure",
"description": "Change the exposure of the image by given exposure value", "description": "Change the exposure of the image by given exposure value",
"inputs": { "inputs": {
"exposure": { "exposure": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Fisheye GL", "name": "fisheye-gl",
"description": "Correct fisheye, or barrel distortion, in images (with WebGL -- adapted from fisheye-correction-webgl by @bluemir).", "description": "Correct fisheye, or barrel distortion, in images (with WebGL -- adapted from fisheye-correction-webgl by @bluemir).",
"requires": [ "webgl" ], "requires": [ "webgl" ],
"inputs": { "inputs": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Flip Image", "name": "flip-image",
"description": "Flip The Image On The Specified Axis.", "description": "Flip The Image On The Specified Axis.",
"inputs": { "inputs": {
"Axis": { "Axis": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Gamma Correction", "name": "gamma-correction",
"description": "Apply gamma correction on the image <a href='https://en.wikipedia.org/wiki/Gamma_correction'>Read more</a>", "description": "Apply gamma correction on the image <a href='https://en.wikipedia.org/wiki/Gamma_correction'>Read more</a>",
"inputs": { "inputs": {
"adjustment": { "adjustment": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Gradient", "name": "gradient",
"description": "Gives a gradient of the image", "description": "Gives a gradient of the image",
"inputs": {}, "inputs": {},
"docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#gradient-module" "docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#gradient-module"

View File

@@ -1,5 +1,5 @@
{ {
"name": "GridOverlay", "name": "grid-overlay",
"description": "Overlays a grid over an Image", "description": "Overlays a grid over an Image",
"inputs": { "inputs": {
"x": { "x": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Histogram", "name": "histogram",
"description": "Calculates the histogram for the image", "description": "Calculates the histogram for the image",
"inputs": { "inputs": {
"gradient": { "gradient": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Import Image", "name": "import-image",
"description": "Import a new image and replace the original with it. Future versions may enable a blend mode. Specify an image by URL or by file selector.", "description": "Import a new image and replace the original with it. Future versions may enable a blend mode. Specify an image by URL or by file selector.",
"url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md", "url": "https://github.com/publiclab/image-sequencer/tree/master/MODULES.md",
"inputs": { "inputs": {

View File

@@ -43,7 +43,7 @@ function Invert(options, UI) {
}; };
} }
var info = { var info = {
'name': 'Invert', 'name': 'invert',
'description': 'Inverts the image.', 'description': 'Inverts the image.',
'inputs': { 'inputs': {
} }

View File

@@ -1,5 +1,5 @@
{ {
"name": "Invert", "name": "invert",
"description": "Inverts the image.", "description": "Inverts the image.",
"inputs": { "inputs": {
}, },

View File

@@ -1,5 +1,5 @@
{ {
"name": "NDVI", "name": "ndvi",
"description": "Normalized Difference Vegetation Index, or NDVI, is an image analysis technique used with aerial photography. It's a way to visualize the amounts of infrared and other wavelengths of light reflected from vegetation by comparing ratios of blue and red light absorbed versus green and IR light reflected. NDVI is used to evaluate the health of vegetation in satellite imagery, where it correlates with how much photosynthesis is happening. This is helpful in assessing vegetative health or stress. <a href='https://publiclab.org/ndvi'>Read more</a>.<br /><br/>This is designed for use with red-filtered single camera <a href='http://publiclab.org/infragram'>DIY Infragram cameras</a>; change to 'blue' for blue filters", "description": "Normalized Difference Vegetation Index, or NDVI, is an image analysis technique used with aerial photography. It's a way to visualize the amounts of infrared and other wavelengths of light reflected from vegetation by comparing ratios of blue and red light absorbed versus green and IR light reflected. NDVI is used to evaluate the health of vegetation in satellite imagery, where it correlates with how much photosynthesis is happening. This is helpful in assessing vegetative health or stress. <a href='https://publiclab.org/ndvi'>Read more</a>.<br /><br/>This is designed for use with red-filtered single camera <a href='http://publiclab.org/infragram'>DIY Infragram cameras</a>; change to 'blue' for blue filters",
"inputs": { "inputs": {
"filter": { "filter": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "NDVI-Colormap", "name": "ndvi-colormap",
"description": "Sequentially Applies NDVI and Colormap steps", "description": "Sequentially Applies NDVI and Colormap steps",
"inputs": {}, "inputs": {},
"docs-link": "https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#ndvi-colormap-module" "docs-link": "https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#ndvi-colormap-module"

View File

@@ -1,5 +1,5 @@
{ {
"name": "Overlay", "name": "overlay",
"description": "Overlays an Image over another at a given position(x,y) in pixels or in %", "description": "Overlays an Image over another at a given position(x,y) in pixels or in %",
"inputs": { "inputs": {
"x": { "x": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "PaintBucket", "name": "paint-bucket",
"description": "Fill color in pixels", "description": "Fill color in pixels",
"inputs": { "inputs": {
"startingX": { "startingX": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "ReplaceColor", "name": "replace-color",
"description": "Replace color with grey or your desired color", "description": "Replace color with grey or your desired color",
"inputs": { "inputs": {
"replaceMethod": { "replaceMethod": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Resize", "name": "resize",
"description": "Resize image by given percentage value", "description": "Resize image by given percentage value",
"inputs": { "inputs": {
"resize": { "resize": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Rotate", "name": "rotate",
"description": "Rotates image by specified degrees", "description": "Rotates image by specified degrees",
"inputs": { "inputs": {
"rotate": { "rotate": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Saturation", "name": "saturation",
"description": "Change the saturation of the image by given value, from 0-1, with 1 being 100% saturated.", "description": "Change the saturation of the image by given value, from 0-1, with 1 being 100% saturated.",
"inputs": { "inputs": {
"saturation": { "saturation": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Text-Overlay", "name": "text-overlay",
"description": "Overlay text on image.", "description": "Overlay text on image.",
"inputs": { "inputs": {
"text": { "text": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Threshold", "name": "threshold",
"description": "Thresholding is used to create binary images", "description": "Thresholding is used to create binary images",
"inputs": { "inputs": {
"threshold": { "threshold": {

View File

@@ -1,5 +1,5 @@
{ {
"name": "Tint", "name": "tint",
"description": "Add color tint to an image", "description": "Add color tint to an image",
"inputs": { "inputs": {
"color":{ "color":{

View File

@@ -1,5 +1,5 @@
{ {
"name": "WebGl Distort", "name": "webgl-distort",
"requires": [ "requires": [
"webgl" "webgl"
], ],

View File

@@ -1,5 +1,5 @@
{ {
"name": "White Balance", "name": "white-balance",
"description": "Render neutral colours correctly based on the whitest pixel in the image.", "description": "Render neutral colours correctly based on the whitest pixel in the image.",
"inputs": { "inputs": {
"red": { "red": {