Login  Register

Re: Direction indicator

Posted by Michael Doube on Sep 15, 2010; 4:56pm
URL: http://imagej.273.s1.nabble.com/Direction-indicator-tp3686815p3686817.html

>> I'm thinking about implementing a direction indicator to show the
>> orientation of the body that the image is from.
>> Any hints at how to achieve this better would be appreciated,
>
> Take a look at the internal Orthogonal_Views plugin (Image>Stacks>Orthogonal Views). The source code is at
>
>        http://imagej.nih.gov/ij/source/ij/plugin/Orthogonal_Views.java
>
> It use overlays and the ImageCanvas.setCustomRoi() method to create custom cross-shaped selections on XY, YZ and XZ views.
>
> -wayne

I had a go at this today using Orthogonal_Views and ContrastAdjuster and
have a PlugInFrame that rotates blue crosshairs with a slider.

http://github.com/mdoube/BoneJ/blob/directionOverlay/src/org/doube/geometry/AnatomicAxes.java

Text disappears after rotating though, so my labels don't work, and I
can't add an ordinary ROI to the image (which is also annoying in
Orthogonal_Views).  So it would be better if the direction indicator was
independent of the ROI stuff, like the zoomIndicator.

Michael