Login  Register

Re: 1-D Gaussian multiplier/convolution function around line in image.

Posted by Herbie on Jan 26, 2019; 8:48am
URL: http://imagej.273.s1.nabble.com/1-D-Gaussian-multiplier-convolution-function-around-line-in-image-tp5021719p5021720.html

Good day Ethan,

you may use the ImageJ-functionality that is accessible from "Process >>
Math >> Macro..."

Enter the following code to the Code-line:

b=0.001; v=v*3*exp(-b*(y-h*0.5)*(y-h*0.5));

This Image-Math macro works for 32bit images and the Gauss-width is
defined by variable b.

The Gauss-width should *not* be called bandwidth if your image isn't a
Fourier-spectral signal.

Of course, the Gauss-function acts as a weighting window, i.e. it does
*not* perform a convolution!

Regards

Herbie

::::::::::::::::::::::::::::::::::::::::::::
Am 26.01.19 um 02:36 schrieb Cohen, Ethan D:

>
> I have an image, where I want to vertically weight the intensity the pixels, by a 1-D Gaussian function around a horizontal line ROI in the image, so that the peak is 3X the original intensity, with a Gaussian ½ bandwidth of say 15 pixels in the Y direction.
>
> Something like, v=3v* exp (-b*(y-y0)^2  -1*(y-y0));?
>
> Or maybe ImageJ already has a feature for 1-D Gaussian weighting (not blur)?   I guess this is sort of a 1-D convolution.
>
> Is there a function already in ImageJ to do this?
> I suppose I could make some sort of weighting matrix, but it seems rather painful.
>
> Ethan.
>
>
> Ethan Cohen, Ph.D.
> Div of Biomedical Physics, WO62 Rm 1204
> Office of Science and Engineering Labs,
> FDA Center for Devices and Radiological Health
> White Oak Federal Res Ctr.
> 10903 New Hampshire Ave.
> Silver Spring, MD 20993
> Web: http://go.usa.gov/cegV3
> Office: 301-796-2485
> Lab:301-796-2762
> Fax: 301-796-9927
> Cell: 301-538-7544
>
> [cid:image001.png@01D1C57E.DFA022A0]<http://www.fda.gov/>Excellent customer service is important to us. Please take a moment to provide feedback regarding the customer service you have received: https://www.research.net/s/cdrhcustomerservice?O=700&D=740&B=740&E=&S=E
> "THIS MESSAGE FROM ETHAN COHEN IS INTENDED ONLY FOR THE USE OF THE PARTY TO WHOM IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL, AND PROTECTED FROM DISCLOSURE UNDER LAW. If you are not the addressee, or a person authorized to deliver the document to the addressee, you are hereby notified that any review, disclosure, dissemination, copying, or other action based on the content of this communication is not authorized. If you have received this document in error, please immediately notify the sender immediately by e-mail or phone."
> ________________________________
>
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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