Can imregister provide transformation details on the registeration of the moving image?
14 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sonoma Rich
el 19 de Mzo. de 2012
Comentada: Alex Taylor
el 21 de Dic. de 2013
I want to register and fuse two images, but I need to do some image processing of the images that I register, then use the translation and rotation details of the registration to fuse the unprocessed images. imregister only provides a transformed image, but no details on how it transformed it. Is there any way to get the details of the transformation to apply to my unprocessed images?
2 comentarios
Anita
el 27 de Feb. de 2013
Richard, Can you please provide the modified imregister2 function which outputs tform?
Sean de Wolski
el 27 de Feb. de 2013
@Anita, I believe you just have to add tform as an output:
[moving_ref, tform] = imregister2(varargin)
Then copy the rest of its contents.
Respuesta aceptada
Más respuestas (2)
Alex Taylor
el 14 de Mzo. de 2013
As of R2013a, users who want access to the geometric transformation estimate computed by imregister can call the function imregtform. The function imregtform returns a geometric transformation object that can be applied to the moving image using the new function imwarp.
The function imregister calls imregtform to obtain the geometric transformation that registers the moving image to the fixed image and then calls imwarp to produce the returned output image.
3 comentarios
Sean de Wolski
el 19 de Dic. de 2013
In R2013b, imregister just calls imregtform on the first line. So it will depend on what you pass in...
Alex Taylor
el 21 de Dic. de 2013
Yes, I'm quite sure. When you call imwarp with the output tform, you will need to specify an 'outputview' so that imwarp knows the location and resolution you want for the resampled image. In most registration problems in the default coordinate system, you will define the output spatial referencing option (assuming 2d) as:
MovingReg = imwarp(moving, tform, 'OutputView', imref2d(size( fixed)));
This is shown in the examples in the help and documentation for imregtform.
Ashish Uthama
el 20 de Mzo. de 2012
One possible approach:
If you add this parameter and value:
'DisplayOptimization',true
to your call, you'll notice that imregister displays the affine transform it uses with imtransform to perform the final registration.
Ver también
Categorías
Más información sobre 3-D Volumetric Image Processing en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!