Export Results from Registration Estimator App
When you find an acceptable registration fromRegistration Estimator, export the results. You can use the exported results to apply similar registration to other frames in an image sequence. There are two options to export the results:
Export the registered image and the geometric transformation to the workspace. Apply an identical geometric transformation to other images using
imwarp
.Generate a function with the desired registration technique and settings. Call this function to register other images using the same settings.
Export Results to the Workspace
To export the registration results to the workspace, click the desired trial in the history list, then clickExportand selectExport Images. In the Export to Workspace dialog box, assign a name to the registration output. The output is a structure that contains the final registered image, the spatial referencing object, and the geometric transformation used for the registration.
Generate a Function
To generate MATLAB®code that registers images using the desired registration technique and settings, click the corresponding trial in the history list, then clickExport. Select theGenerate Functionoption. The app opens the MATLAB editor containing a function with the autogenerated code. To save the code, clickSavein the MATLAB editor.
Note
如果您生成一个函数使用一个基于registration technique, then you must have Computer Vision Toolbox™ to run the function.
The generated function accepts a moving and a fixed image as inputs. The function returns a structure that contains the final registered image, the spatial referencing object, and the geometric transformation of the registered image. If you generate a function using a feature-based registration technique, then the output structure has two additional fields for the moving matched features and the fixed matched features.