Imageload: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with '===Purpose=== Unfolds image data into a DataSet Object. ===Synopsis=== :imgdso = buildimage(data, modes, target, name) ===Description=== Given a matrix of image data or a Dat…')
 
imported>Scott
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
===Purpose===
===Purpose===


Unfolds image data into a DataSet Object.
GUI to select, build, then load a image DSO into the DataSet Editor.


===Synopsis===
===Synopsis===
:imgdso = buildimage(data, modes, target, name)
: imageDSO = imageload; %Load workspace image.
: imageDSO = imageload(data); %Load image from command line.
: imageDSO = imageload('other'); %Load other standard image from file (e.g., .jpg, .gif, etc...)


===Description===
===Description===


Given a matrix of image data or a DataSet Object (DSO) with image data in the .data field, this function will attempt to unfold the data so toolbox functions can operate without needing image specific routines.
IMAGELOAD uses lddlgpls.m to find and select image data then calls buildimage.m. If data is omitted, IMAGELOAD will allow the user to load a valid image from the Matlab workspace. If data is the string 'other', it will allow the user to load a recognized standard image file (see Matlab [http://www.mathworks.com/help/matlab/ref/imread.html imread] function).
 
====INPUTS====
 
* '''idata''': matrix of image data or a DSO containing image data in''' '''the .data field.
* '''modes''': [1xN] vector of spatial modes, default [1 2].
* '''target''': [scalar] target mode for unfolded spatial data,  default [1].
* '''name''': name of new dataset, overrides idata name if DSO.
 
====OUTPUTS====
 
* '''imgdso''' = DSO with unfolded image data in the .data field.


===See Also===
===See Also===
[[buildimage]], [[cropimage]], [[inheritimage]]
[[buildimage]], [[cropimage]], [[inheritimage]]

Latest revision as of 09:57, 5 October 2012

Purpose

GUI to select, build, then load a image DSO into the DataSet Editor.

Synopsis

imageDSO = imageload; %Load workspace image.
imageDSO = imageload(data); %Load image from command line.
imageDSO = imageload('other'); %Load other standard image from file (e.g., .jpg, .gif, etc...)

Description

IMAGELOAD uses lddlgpls.m to find and select image data then calls buildimage.m. If data is omitted, IMAGELOAD will allow the user to load a valid image from the Matlab workspace. If data is the string 'other', it will allow the user to load a recognized standard image file (see Matlab imread function).

See Also

buildimage, cropimage, inheritimage