Login  Register

Re: Problems using the FFT Bandpass Filter

Posted by Michael Schmid on Mar 27, 2015; 9:39am
URL: http://imagej.273.s1.nabble.com/Problems-using-the-FFT-Bandpass-Filter-tp5012174p5012203.html

Hi Henning,

the following works for me:

run("HeLa Cells (1.3M, 48-bit RGB)");
run("Stack to RGB");
run("Bandpass Filter...", "filter_large=16 filter_small=0 suppress=None tolerance=5");
run("16-bit");

Make sure that you have selected "automatic" 16-bit display range in Edit>Options>Appearance. Otherwise, a 16-bit image will appear black if it has low pixel values.
I don't see a reason for using 16-bit resolution, however; RGB has only 8 bits, so 8 bits would give the same result.
It would make sense to convert to 32 bits (floating point) *before* the Bandpass Filter is applied; just make sure you always use the same settings in Edit>Options>Conversions (if the color channels have roughly equal noise, 'weighted RGB conversions' should be off).


Michael
________________________________________________________________

On Mar 25, 2015, at 18:08, Hening Bettermann wrote:

> Hi!
>
> I am looking for a way to extract regions of equal degrees of blur from 16 bit TIF RGB images. Bart van der Wolf has kindly guided me to ImageJ in this thread on the Luminous-landscape.com forum:
> http://forum.luminous-landscape.com/index.php?topic=98885.msg808398#msg808398
>
> providing this recipe:
>
> "to select defocused regions, you would need to use software that allows to isolate (de-)focused areas. This hints at spatial frequency separation, something that can e.g. be done with ImageJ with it's FFT Bandpass filter. Open the image and convert it to an "Image type 32-bit" version with the menu choices. Then use "Process FFT Bandpass Filter...", and use the setting from the attached image to select the focused areas. Then convert the result to "Image Type 16-bit" and save it as a TIFF or a PNG file, which then can be used in Photoshop to create a mask.
>
> You can create a mask from the above selection and a layer filled with 50% gray, in Difference mode. Then use a Levels adjustment and a bit of blur to get the general mask, perfected with some local painting in/out."
>
> The setting suggested for the FFT Bandpass filter was 'Filter large structure down to -1- pixels; filter small structures up to -0- pixels.'
>
> To extract regions of increasing blur, the first value would have to be increased, then the resulting masks would have to be subtracted.
>
> After some trial and error concerning 'out of memory' alerts, I am able to do the following:
>
> Open the image in ImageJ. It is displayed as 3 different layers, the red layer on top.
> Image > Color > Stack to RGB
> Process > FFT > Bandpass filter, with 2 different settings: 1-0 and 16-0.
> Image > Type > 16 bit
>
> In ImageJ, both of the resulting images look like the complete image, just in black and white.
>
> After saving to disk and then opening in Mac Preview or in PhotoLine, they both look all black.
>
> I am running ImageJ 1.49 64 bit on a MacBook Pro with OSX 10.9.5 and 16 GB of RAM.
>
> Can anybody help? - Thank you!
>
> Hening Bettermann.
>
>
>
>
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html