Faq create multivariate image from separate images: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Lyle
imported>Lyle
No edit summary
 
Line 5: Line 5:
===Possible Solutions:===
===Possible Solutions:===


If you are performing PCA on a multivariate image, you may need to construct a 3 dimensional (MxNxP) array where each image is MxN pixels and there are P images. An easy way to do this is using the Matlab cat() command.
If you are performing PCA on a multivariate image, you may need to construct a 3 dimensional (MxNxP) array where each image is MxN pixels and there are P images. An easy way to do this is using the Matlab <code>cat()</code> command.


>>mvimg = cat(3, img1, img2, img3);
>> mvimg = cat(3, img1, img2, img3);


Note the first argument = 3, this indicates the concatenation is occurring along the 3rd dimension.
Note the first argument = 3, this indicates the concatenation is occurring along the 3rd dimension.
'''Still having problems? Please contact our helpdesk at [mailto:helpdesk@eigenvector.com helpdesk@eigenvector.com]'''
[[Category:FAQ]]
[[Category:FAQ]]

Latest revision as of 10:18, 5 December 2018

Issue:

How do I concatenate multiple files into a single DataSet?

Possible Solutions:

If you are performing PCA on a multivariate image, you may need to construct a 3 dimensional (MxNxP) array where each image is MxN pixels and there are P images. An easy way to do this is using the Matlab cat() command.

>> mvimg = cat(3, img1, img2, img3);

Note the first argument = 3, this indicates the concatenation is occurring along the 3rd dimension.


Still having problems? Please contact our helpdesk at helpdesk@eigenvector.com