Difference between revisions of "Support:Documents:Examples:Import a matrix or an ImageVolumeData (IVD) object from the MATLAB Workspace"

From COMKAT wiki
Jump to navigation Jump to search
Line 4: Line 4:
  
  
1.Open data in Worksapce.
+
1.Open data in Worksapce:
  
  
Line 12: Line 12:
  
  
2.Create this function, you will see the image.
+
2.Run comkatimagetool as follows, you will see the image:
 
<pre>
 
<pre>
 
comkatimagetool(ivd1)
 
comkatimagetool(ivd1)
Line 22: Line 22:
  
  
3.You can import image & fusion image simultaneously.
+
3.Also, you can import image & fusion image simultaneously:
 
<pre>
 
<pre>
 
comkatimagetool(ivd2,ivd3)
 
comkatimagetool(ivd2,ivd3)
Line 28: Line 28:
 
</pre>
 
</pre>
  
4.Also, you can designed your data to image or fusion image directly.
+
4.You can designate your data to image or fusion image directly:
 
<pre>
 
<pre>
 
comkatimagetool(ivd2,1)                    %Image
 
comkatimagetool(ivd2,1)                    %Image
Line 36: Line 36:
 
</pre>
 
</pre>
  
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')                    %Image
+
comkatimagetool(ivd2,1,'reuse')                    %Designate ivd1 to Image
  
comkatimagetool(ivd2,2,'reuse')                    %Fusion Image
+
comkatimagetool(ivd2,2,'reuse')                    %Designate ivd2 to Fusion Image
  
 
</pre>
 
</pre>

Revision as of 19:50, 31 July 2015

Import from MATLAB

In COMKAT R4.0a, you can import a matrix or an IVD object from the MATLAB Workspace.


1.Open data in Worksapce:


Import matrix&IVD 2.png

Export to Workspace 4.png


2.Run comkatimagetool as follows, you will see the image:

comkatimagetool(ivd1)

or

comkatimagetool(Mat1)


3.Also, you can import image & fusion image simultaneously:

comkatimagetool(ivd2,ivd3)

4.You can designate 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')                     %Designate ivd1 to Image

comkatimagetool(ivd2,2,'reuse')                     %Designate ivd2 to Fusion Image