[Insight-users] Image registration error
Torsten Rohlfing
torsten at synapse.sri.com
Thu Jan 11 17:44:18 EST 2007
Hi --
Just a wild guess Eric: are you rotating around the coordinate origin
(0,0,0), which is a corner of your image, instead of the image center?
That would certainly explain why your rotating outside the field of
view. Whether your image viewer shows each image centered or not is
irrelevant by the way, because it does not take into account whatever
transformation you're applying between the two.
Hope this helps.
Torsten
> Eric,
>
> The only way that exception could be thrown is if the pixel count for a
> particular iteration through the GetValue() method equaled 0. It could
> be that for one reason or another, your previous inputs are not updating
> their Region areas like they should. Before setting your moving and
> fixed images, try calling the ->Update() method on each one.
>
> BTW, what kind of transform are you using, and what are your initial
> parameters for it?
>
> Cheers,
> Dan
>
> Eric John wrote:
> >/
> />/ Hi Dan, I did have experience with rotating images out of view, but
> />/ the rotated image is basically centered in both of my image
> />/ viewers.....I even looked at the header file, but don't see anything
> />/ that would indicate offsets, etc. Any suggestions, I would like to use
> />/ the pre-rotated image for preproccesing reasons?
> />/
> />/ Thanks alot,
> />/
> />/ Eric /
--
Torsten Rohlfing, PhD SRI International, Neuroscience Program
Research Scientist 333 Ravenswood Ave, Menlo Park, CA 94025
Phone: ++1 (650) 859-3379 Fax: ++1 (650) 859-2743
torsten at synapse.sri.com http://www.stanford.edu/~rohlfing/
"Though this be madness, yet there is a method in't"
More information about the Insight-users
mailing list