Image rotationgenerator

I’ve discovered the problem with my image stitching is that the images are slightly rotated in each image and if I rotate these images then the stitching works fine. However, at first I was having to guesstimate the amount of rotation needed for each pair of images, rotate, see if the rotation looks good and attempt to stitch. If the stitched image still looks blurred rotate again and repeat (even a rotation of 0.2 can give a less blurred image). Now I am drawing lines between two landmarks on the images, measuring these angles and then getting the lines roughly equal but this still takes time. There are plugins that do the rotation automatically (e.g. align image by line ROI) but I can’t see the rotation used to align the images.

Image rotationapp

For the stitching Pairwise is often better than Grid I’ve found as Pairwise has an option to ignore 0 values (the black bits in the rotated images) where as with Grid there are often large black areas or toned down areas where the empty bit overlaps with the other image. Pairwise also uses the images in situ rather than the saved files so I can quickly make adjustments if needed and without risking mucking anything up and not having hundreds of back ups required.

BigWarp has lots of options for how to export the result, and it’s definitely possible to make sure the output is not cropped. Maybe if you attach an example I can understand better?

How to rotate a photo in gallery

ED12_RT_6.tif (15.8 MB) ED12_RT_7.tif (15.8 MB) So here are two images I need to stitch as part of my biofilm. Number 6 is on the left and 7 on the right. In the middle there is a thin strip of overlapping material (if you look at the bottom of the biofilm from the right of the first big ridge from the right of 6 until the next big ridge in 7). In Bigwarp I selected 4 landmarks in this overlapping area and selected it to use the rotation option when I press F2. When I press T I get the image shown in Bigwarp_image. As you can see most of the image has gone with only the overlapping part remaining. I was mistaken about the export, it does keep all 6 channels, it just put them all in grey scale which confused me for a moment. The exported image is in Bigwarp_export. Bigwarp export.tif (15.8 MB)

I was mistaken about the export, it does keep all 6 channels, it just put them all in grey scale which confused me for a moment.

i wouldn’t blame you, that’s not very nice behavior for the export :-/ - feel free to create a new issue about this if you’d like (if you don’t i might).

In your case, changing the Resolution technically doesn’t matter - but only because the two images have the same resolution. For your use case, you probably want to export the moving image at the same resolution that it started at

You can manually rotate by dragging the points around. Press to choose the rotation. and it also prints a rotation matrix. It’s possible to extract the angle from that if you need. (Let us know if that would be helpful and I’m sure someone can help with that)

Image rotationonline

The ImageJ wiki is a community-edited knowledge base on topics relating to ImageJ, a public domain program for processing and analyzing scientific images, and its ecosystem of derivatives and variants, including ImageJ2, Fiji, and others.

The plugin also has an option of “no underlying grid” which will increase computational time and RAM use but it might be worth a try.

That does not really solve the issue as 90% of image 7 has been cut. What I really need is a result where the images overlap as they are then used to reconstruct the whole biofilm. Doing it by hand I got number 15 and then eventually I end up with my result (these don’t have the channels due to upload size limit). It just takes an hour to do one biofilm as these have between 2-13 parts depending on the strain and I really want to find a way to streamline the process.

Bigwarp does work as advertised. This issue with cropping is because the software transforms the image as well so it does look cropped but you can move the image with the right click and all the information is there. I’ve had some really good results with the exported warped images I got. If there are still issues with the registration of the images for stitching I use the Align4 plugin from G. Landini to get the coordinates for where my images overlap (mostly this is where there are small, distinct areas of overlap so mostly smooth biofilms where most of the middle is the same but the edges don’t match up on stitching or where there is very, very little overlap).

Image rotationfree

Changing the field of view option to Moving (warped) tells bigwarp: “transform the image, see where it ends up, and make sure the output contains the transformed image” which I think is pretty much what you need.

Image

With the Bigwarp. I am not sure what is happening but again I get the issue of the software cropping my pictures when it does the alignment which is not what I want. However, the main problem here is that if I export the images from the plugin they become one channel and I lose the brightfield and 3 fluorescent channels from the images.

Rotate picture by degrees

Image

Wow, I also would like to join in saying that those structures are really cool. I have no breakthrough advice for the direct problem with rotation though, my cursory thoughts would go to 1) extracting a small ROI of the overlapping region, 2) applying MultiStackReg to automatically register these two small sub-images (rigid), 3) extracting the transformation matrix and noting the angular values.

A more extreme example to show what that option does: rotating at ~45 degrees and selecting the above export options gets me this: image793×830 63.7 KB

The rotation center can be set by making a selection and selecting Image>Transform>Rotate… It looks like that rotates a selection about its center.

Image

I used your exemplary images and guessed an overlap of 10% and the fused image looks pretty good. Resized to ~ 1/4 of the number of pixels to be able to upload it.

3D rotateimageonline

If you’re using bigstitcher, it may have some built-in ways to apply rotations, but I havn’t used it much. Maybe this is worth checking out:

Thanks for the recommendations however neither of them are appropriate. With the interactive rigid I need to be able to rotate the image in relation to another and I have no reference point when I am rotating the image (for example I have a triangle in my biofilms I can’t see if this has been lined up correctly in relation to the same triangle in the second image ready for stitiching). It also has the unexpected effect of dragging the channels in the image out of sync with each other so the image itself gets distorted once I start rotating it.

image1104×974 89.7 KB I draw an ellipse over a known circular area, rotate and scale till the selection is circular in order to simulate a 3D alignment. image1037×519 37.8 KB

However, if I have used Align4 I need to use the Grid option “Positions from file” and I can modify the TileConfiguration file with the coordinates I received from Align4 to get the images stitched where I want them without the computer being confused.

Is there a way to see how much the image was rotated in one of these align tools/plugins? I can’t just just the align plugins as they tend to crop the images which is not what I want as I am making a bigger image out of component images. The image also have 6 channels so I prefer to rotate and then stitch either pairwise or gridwise so these channels don’t get blended together.