Hello, I am using MATLAB to do some image processing.
In the processing, I need to aline images properly so that each region on a physical model can be compared to the same region in another image which was taken at different times. In order to do so, I drew some reference markers on the physical model.
Is there any function or common way to aline images by translating, rotating and/or re-sizing to aline images?
Thank you for cooperating.

 채택된 답변

Image Analyst
Image Analyst 2023년 10월 1일

0 개 추천

help cpselect
cpselect - Control Point Selection tool This MATLAB function starts the Control Point Selection tool that enables you to select control points in two related images. Syntax cpselect(moving,fixed) cpselect(moving,fixed,initialMovingPoints,initialFixedPoints) cpselect(moving,fixed,cpstruct_in) h = cpselect(___) h = cpselect(___,'Wait',false) [selectedMovingPoints,selectedFixedPoints] = cpselect(___,'Wait',true) Input Arguments moving - Input image to be aligned grayscale image | truecolor image | binary image | character vector | string fixed - Reference image grayscale image | truecolor image | binary image | character vector | string cpstruct_in - Preselected control points structure initialMovingPoints - Preselected control points on moving image m-by-2 numeric array initialFixedPoints - Preselected control points on fixed image m-by-2 numeric array Output Arguments h - Control Point Selection tool handle selectedMovingPoints - Selected control points on moving image p-by-2 numeric array selectedFixedPoints - Selected control points on fixed image p-by-2 numeric array Examples openExample('images/StartControlPointSelectionToolWithSaveImagesExample') openExample('images/OpenControlPointSelectionToolWithPredefinedControlPointsExample') See also cpcorr, fitgeotform2d, imwarp, cpstruct2pairs Introduced in Image Processing Toolbox before R2006a Documentation for cpselect doc cpselect
help imregister
imregister - Intensity-based image registration This MATLAB function transforms the 2-D or 3-D grayscale image, moving, so that it is registered with the reference image, fixed. Syntax moving_reg = imregister(moving,fixed,transformType,optimizer,metric) [moving_reg,R_reg] = imregister(moving,Rmoving,fixed,Rfixed,transformType,optimizer,metric) ___ = imregister(___,Name,Value) Input Arguments moving - Image to be registered numeric matrix | 3-D numeric array Rmoving - Spatial referencing information associated with image to be registered imref2d object | imref3d object fixed - Reference image numeric matrix | 3-D numeric array Rfixed - Spatial referencing information associated with reference image imref2d object | imref3d object transformType - Geometric transformation to be applied to image to be registered "translation" | "rigid" | "similarity" | "affine" optimizer - Method for optimizing similarity metric RegularStepGradientDescent or OnePlusOneEvolutionary optimizer object metric - Image similarity metric to be optimized during registration MeanSquares or MattesMutualInformation metric object Name-Value Arguments DisplayOptimization - Verbose optimization flag false (default) | true InitialTransformation - Initial geometric transformation affinetform2d object | affinetform3d object PyramidLevels - Number of pyramid levels used during registration process 3 (default) | positive integer Output Arguments moving_reg - Registered image numeric matrix | 3-D numeric array R_reg - Spatial referencing information associated with registered image imref2d object | imref3d object Examples openExample('images/RegisterMultimodalMRIImagesWithOptimizerExample') See also Registration Estimator, imregconfig, imregcorr, imregtform, imwarp, imshowpair, imfuse, imregicp Introduced in Image Processing Toolbox in R2012a Documentation for imregister doc imregister

추가 답변 (0개)

카테고리

도움말 센터 및 File Exchange에서 Geometric Transformation and Image Registration에 대해 자세히 알아보기

제품

릴리스

R2023a

질문:

2023년 10월 1일

답변:

2023년 10월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by