Posted by
Michael Schmid on
Oct 07, 2016; 2:51pm
URL: http://imagej.273.s1.nabble.com/create-an-image-according-to-its-radial-profile-tp5017303p5017316.html
Hi Michael,
it works for me; try this macro:
values=newArray(0,5,255,3,5,8,9,150,223,4,5,6,7,99,199,200,255);
newImage("8-bit","theProfile",values.length, 2, 1);
for (i=0; i<values.length; i++) {
putPixel(i,0,values[i]);
putPixel(i,1,values[i]);
}
run("Polar Transformer", "method=Cartesian degrees=360 default_center
for_polar_transforms,");
Beware of possible line breaks introduced by the mailer; ther should be
one long line after the closing curly braces.
Michael
________________________________________________________________
On 2016-10-07 16:18, Michael Elbaum wrote:
> Thanks for the suggestions, but still it doesn't work. Maybe my
> concept is off. I have a 1D radial function that I want to represent
> as a 2D image where the intensity at each pixel depends on its radial
> distance to the center. This should be like mirroring the function at
> the center of a 1D image (of twice the width) and drawing circles
> matching the intensity at each point on the axis across the second
> dimension. The polar transformer plugin is giving me a smeared cross
> shape with max intensity on the x and y axes. Maybe it will be easier
> to fill the image in pixel by pixel taking care of the
> interpolations. regards, Michael
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html