In the Process dropdown menu is an option to add noise to an area of interest or to an entire image. I would like to encode that in a plugin such that I can define the area of interest then apply the noise to it, thus the image might 4 or 5 area, each with a different level of noise. When I try to dive down into the menu item for help, it takes me off to a separate web site that contains another jar that demonstrates different types of noise but does not show how to create the noise.`
Has anyone managed to develop an Add-Noise routine similar to the functions in the dropdown menu?
Thank you for replying to my inquiry. The link that you showed provided the source to the Menu Item for Process. So it includes calls to each item in the menu list: ‘invert’, ‘smooth’, ‘sharpen’, ‘edge’, ‘add’, ‘noise’ but it does not show how the filters are applied to the roi. The calls to the add noise filter is ip.noise(25.0) and the call to the custom noise filter is ip.noise(sd), where sd = a float with the default value of 25.0 in the ‘add’ option. It implies that this number is a standard deviation. So what I cannot understand is what Gaussian about this filter. Is it a spatial Gaussian (mean Intensity, std. deviation Intensity) only along the intensity axis or is there a Gaussian distribution in x,y as well? So what I would really like is the source for the filter ip.noise(x). So your post was a lot of help as I am now focused on a specific function in ImageJ 1.x