Difference between revisions of "Support:Documents:Examples:Import a matrix or an ImageVolumeData (IVD) object from the MATLAB Workspace"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
− | 1. | + | 1.Load data to Workspace: |
Line 20: | Line 20: | ||
comkatimagetool(Mat1) | comkatimagetool(Mat1) | ||
</pre> | </pre> | ||
+ | |||
+ | *The inputted matrix, Mat1, can be a 3-dimensional, 4-dimensional, or 5-dimensional matrix. | ||
Line 28: | Line 30: | ||
</pre> | </pre> | ||
− | 4.You can | + | 4.You can assign your data to image or fusion image directly: |
<pre> | <pre> | ||
comkatimagetool(ivd2,1) %Image | comkatimagetool(ivd2,1) %Image | ||
Line 38: | Line 40: | ||
5.Display your image in the latest ComkatImagetool window, instead of creating a new one: | 5.Display your image in the latest ComkatImagetool window, instead of creating a new one: | ||
<pre> | <pre> | ||
− | comkatimagetool(ivd2,1,'reuse') % | + | comkatimagetool(ivd2,1,'reuse') %Assign ivd1 to Image |
− | comkatimagetool(ivd2,2,'reuse') % | + | comkatimagetool(ivd2,2,'reuse') %Assign ivd2 to Fusion Image |
</pre> | </pre> |
Latest revision as of 18:09, 4 August 2015
Import from MATLAB
In COMKAT R4.0a, you can import a matrix or an IVD object from the MATLAB Workspace.
1.Load data to Workspace:
2.Run comkatimagetool as follows, you will see the image:
comkatimagetool(ivd1) or comkatimagetool(Mat1)
- The inputted matrix, Mat1, can be a 3-dimensional, 4-dimensional, or 5-dimensional matrix.
3.Also, you can import image & fusion image simultaneously:
comkatimagetool(ivd2,ivd3)
4.You can assign your data to image or fusion image directly:
comkatimagetool(ivd2,1) %Image comkatimagetool(ivd2,2) %Fusion Image
5.Display your image in the latest ComkatImagetool window, instead of creating a new one:
comkatimagetool(ivd2,1,'reuse') %Assign ivd1 to Image comkatimagetool(ivd2,2,'reuse') %Assign ivd2 to Fusion Image