rotating Image by Image J

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

rotating Image by Image J

persian
I want to rotate image by Image J, First, I open the image that should be rotate, then from Image/Transform/Rotate I enter the amount that I want, but the problem that I meet is, after rotating the Image there is black back ground in my Image. How can I rotate whole image without seeing black part in back of my main image
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

John Hayes
Hi,

I think you may want to try playing with the « Enlarge Image to Fit Result » and « Fill with Background Color » where the background color is specified in Edit->Options->Colors. However, if you do not want the extra black (or background color) and just want the ImageWindow rotated, I do not think that is possible in ImageJ (I would be curious if someone knows I’m wrong). I believe you would have to do that operation in another tool like Illustrator.

Best,

John

Le 20 mai 2014 à 22:46, persian a écrit :

> I want to rotate image by Image J, First, I open the image that should be
> rotate, then from Image/Transform/Rotate I enter the amount that I want, but
> the problem that I meet is, after rotating the Image there is black back
> ground in my Image. How can I rotate whole image without seeing black part
> in back of my main image
> <http://imagej.1557.x6.nabble.com/file/n5007812/a.jpg>
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/rotating-Image-by-Image-J-tp5007812.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

persian


  Thank you for your comment, Yes, I want rotate window of picture. Is someone any idea in this case or it is impossible by Image J?
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

John Hayes
I really don’t think so, unless you wanted to dig into the source code, but how would this serve you better than if you ended up just doing this in Illustrator/Photoshop? That is, if you rotated the window, the .jpeg would never come out nicer as it would be always normalized to a rectangular figure, and you’d still have to crop things in your post-processing image.

Just curious because maybe you have some special circumstance that I’m simply don’t understand...

Best,

John

Le 21 mai 2014 à 21:38, persian a écrit :

>  Thank you for your comment, Yes, I want rotate window of picture. Is
> someone any idea in this case or it is impossible by Image J?
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/rotating-Image-by-Image-J-tp5007812p5007834.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

Jeremy Adler
In reply to this post by persian
That parts are missing when you rotate an oblong image in an oblong window is entirely reasonable.
The software cannot know what should be there and sensibly and honestly leaves the unknown pixels empty.

You could crop the images to exclude the unknown pixels but to somehow fill the pixels is dodgy and would not be accepted by many journals. You could use a circular crop and set the pixels outside the selection to any color you want but any attempt to extend the known parts of the image into the unknown part is not legitimate.

Its too late, but you could rotate the specimen before you image it or image a larger area, so that when you rotate the image you can crop it and still have legitimate pixels.


________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of persian [[hidden email]]
Sent: 20 May 2014 22:46
To: [hidden email]
Subject: rotating Image by Image J

I want to rotate image by Image J, First, I open the image that should be
rotate, then from Image/Transform/Rotate I enter the amount that I want, but
the problem that I meet is, after rotating the Image there is black back
ground in my Image. How can I rotate whole image without seeing black part
in back of my main image
<http://imagej.1557.x6.nabble.com/file/n5007812/a.jpg>



--
View this message in context: http://imagej.1557.x6.nabble.com/rotating-Image-by-Image-J-tp5007812.html
Sent from the ImageJ mailing list archive at Nabble.com.

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

persian
In reply to this post by John Hayes
In fact, I have some pictures that continuously rotated during, I have to rotate them and find overlap of them to merge and make mosaic Image, and it is possible when the all window of picture be rotated, otherwise, it can not be merge together because the background will be in the picture and I can not follow overlap parts.
But I am not sure that Photoshop or other software that rotate pictures change quality or not, my Images are in TIFF format.
Reply | Threaded
Open this post in threaded view
|

Re: rotating Image by Image J

ctrueden
Hi persian,

> I have some pictures that continuously rotated during, I have to
> rotate them and find overlap of them to merge and make mosaic Image,
> and it is possible when the all window of picture be rotated,
> otherwise, it can not be merge together because the background will be
> in the picture and I can not follow overlap parts.

Sounds like TrakEM2 is what you need.
https://www.youtube.com/watch?v=gSV0R_su90A
http://fiji.sc/TrakEM2

Regards,
Curtis


On Wed, May 21, 2014 at 3:20 PM, persian <[hidden email]> wrote:

> In fact, I have some pictures that continuously rotated during, I have to
> rotate them and find overlap of them to merge and make mosaic Image, and it
> is possible when the all window of picture be rotated, otherwise, it can
> not
> be merge together because the background will be in the picture and I can
> not follow overlap parts.
> But I am not sure that Photoshop or other software that rotate pictures
> change quality or not, my Images are in TIFF format.
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/rotating-Image-by-Image-J-tp5007812p5007836.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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