JS9 Image Filters

The Image Filter plugin allows you to apply image processing techniques directly to the displayed image without changing the underlying raw data. The web has an overwhelming amount of information about image processing. A good technical article concerning the use of image filters with Javascript and the HTML5 canvas is available at: http://www.html5rocks.com/en/tutorials/canvas/imagefilters/

Note that the standard JS9 colormaps, scale, contrast and bias selections are applied to the raw data to regenerate the RGB image. Thus, if you use an image processing technique and then change colormap, contrast, bias, or scale, you will undo the applied image processing. This is a good way to reset the displayed image.

Several image processing filters and convolutions are available, many of which allow you to adjust a parameter using either a slider or by typing a value into the text box:

Filters are cumulative: if you apply a filter and then apply a second filter, the latter changes the current RGB color values that were modified by the first filter.

You can undo the effects of the current filter by clicking the undo [filter] button. This reverts the image to the colors used in the previous filter. The undo operation is applied to the current filter, allowing you to unwind the filters back to the original image colors. The reset operation unsets all filters. (You can, of course, unset all filters at once by changing the colormap, contrast, bias, or scale.)