Release Notes Solo Predictor Version 2 0 and Cluster img: Difference between pages

From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Jeremy
(New page: ==Changes and Bug Fixes in Version 2.0== ===High-level Changes=== * Updated to be compatible with PLS_Toolbox/Solo 5.2 * Example code and interface includes EigenvectorTools interface...)
 
imported>Scott
 
Line 1: Line 1:
==Changes and Bug Fixes in Version 2.0==
===Purpose===


===High-level Changes===
Perform automatic clustering of image using sample distances.
* Updated to be compatible with PLS_Toolbox/Solo 5.2
* Example code and interface includes [[EigenvectorTools]] interface options
* Added ability to include comments in scripts using % # or //
* Added End Of Message [EOM] string option to indicate when message is complete
* Added options control over timeouts (tickletimeout, emptytimeout, eomtimeout)
* Add additional security for :writefile command
:* require writefilefolder option to be set in socketserver before command will work
:* do not allow changing to HIGHER level folder than writefilefolder
:* do not allow using anything by .tem file as template
:* do not allow writing to .tem files as output
:* add corresponding writefilefolder item to default.xml


===Low-level Changes and Bug Fixes===
===Synopsis===
* Append lasterror info instead of replacing (debug mode)
 
* Make sure log folder exists
:[clas,basis,info,h] = cluster_img(x,nclusters,options)
* Fix for warning when indexing into matrix with numerical values
:clas = cluster_img(x,basis,options)
* Set default configuration to allow loopback only
 
* Fix bug associated with empty string assignment:   x = '';  becomes  x = '[]'; (still returns empty, but doesn't give odd indexing error anymore)
===Description===
* Remove all tab characters (causes str2cell to have problems)
 
* Add placeholder for licensecode (so user knows where to hard-code their code if desired)
Automatically identifies unique pixels in a given image and classifies all other pixels as to which of the unique pixels they are closest to. Pixels are chosen using the DISTSLCT algorithm, the selected samples are normalized to unit length and the remaining pixels are projected onto that basis to determine distances. Although significantly faster, this algorithm returns slightly different results than knn clustering.
* Fix for requesting "who" when no variables exist in private workspace
====Inputs====
* '''[clas,basis,info,h] = cluster_img(x,nclusters,options)''' - The data to cluster (x), the total number of clusters to form (nclusters), and an optional (options) structure (see below), or
* '''[clas,basis,info,h] = cluster_img(x,max_fract,options)''' - The data to cluster (x), the maximum fraction of samples allowed in a cluster (max_fract), and an optional (options) structure (see below), or
* '''clas = cluster_img(x,basis,options)''' - A "prediction" call given the data to cluster (x), a previously calculated basis set returned by cluster_img (basis), and an optional (options) structure.
 
====Optional Inputs====
* '''second''' = optional second input is this.
 
====Outputs====
Outputs are a vector of integer classes for each sample in x <tt>clas</tt>, the
corresponding normalized basis spectra <tt>basis</tt>, information on the
targets and correlation <tt>info</tt>, and the handle <tt>h</tt> of a figure if
created. The output <tt>info</tt> is a structure containing the following
fields:
* '''corr''' = the correlation of each pixel to each target.
* '''targets''' = the indices of the pixels used as targets.
 
 
===Options===
 
options =  a structure array with the following fields:
 
* '''plots''': [ {'none'} | 'final' ] governs plotting of results, and
* '''plots''': [ 'none' |{'final'}] governs plotting of results.
* '''algorithm''': [ 'distslct' |{'kmeans'}] algorithm for determining classes distslct is based solely on most unique samples; kmeans adjusts class target to mean of class (iterative).
* '''minarea''': { 1 } minimum area (in %) that a class must account for to be retained as a unique class.
* '''preprocessing''': { [] } preprocessing structure (see PREPROCESS).
* '''pca''': [ {'no'} | 'yes' ] When 'yes', A PCA model is calculated from the data and the scores are used to perform clustering. The output basis is in terms of the original variables.
* '''ncomp''': [ 1 ] Number of PCs (components) to retain from the PCA model. Only used if options.pca is 'yes'.
 
===See Also===
 
[[cluster]], [[distslct]], [[knn]]

Revision as of 14:46, 29 September 2009

Purpose

Perform automatic clustering of image using sample distances.

Synopsis

[clas,basis,info,h] = cluster_img(x,nclusters,options)
clas = cluster_img(x,basis,options)

Description

Automatically identifies unique pixels in a given image and classifies all other pixels as to which of the unique pixels they are closest to. Pixels are chosen using the DISTSLCT algorithm, the selected samples are normalized to unit length and the remaining pixels are projected onto that basis to determine distances. Although significantly faster, this algorithm returns slightly different results than knn clustering.

Inputs

  • [clas,basis,info,h] = cluster_img(x,nclusters,options) - The data to cluster (x), the total number of clusters to form (nclusters), and an optional (options) structure (see below), or
  • [clas,basis,info,h] = cluster_img(x,max_fract,options) - The data to cluster (x), the maximum fraction of samples allowed in a cluster (max_fract), and an optional (options) structure (see below), or
  • clas = cluster_img(x,basis,options) - A "prediction" call given the data to cluster (x), a previously calculated basis set returned by cluster_img (basis), and an optional (options) structure.

Optional Inputs

  • second = optional second input is this.

Outputs

Outputs are a vector of integer classes for each sample in x clas, the corresponding normalized basis spectra basis, information on the targets and correlation info, and the handle h of a figure if created. The output info is a structure containing the following fields:

  • corr = the correlation of each pixel to each target.
  • targets = the indices of the pixels used as targets.


Options

options = a structure array with the following fields:

  • plots: [ {'none'} | 'final' ] governs plotting of results, and
  • plots: [ 'none' |{'final'}] governs plotting of results.
  • algorithm: [ 'distslct' |{'kmeans'}] algorithm for determining classes distslct is based solely on most unique samples; kmeans adjusts class target to mean of class (iterative).
  • minarea: { 1 } minimum area (in %) that a class must account for to be retained as a unique class.
  • preprocessing: { [] } preprocessing structure (see PREPROCESS).
  • pca: [ {'no'} | 'yes' ] When 'yes', A PCA model is calculated from the data and the scores are used to perform clustering. The output basis is in terms of the original variables.
  • ncomp: [ 1 ] Number of PCs (components) to retain from the PCA model. Only used if options.pca is 'yes'.

See Also

cluster, distslct, knn