Hitachieemreadr and Working with false-color images: Difference between pages

From Eigenvector Research Documentation Wiki
(Difference between pages)
Jump to navigation Jump to search
imported>Scott
No edit summary
 
imported>Benjamin
(Created page with "==Single-layer False-color image== When viewing image-data such as scores of a PCA model built on an image, the scores are formatted with accordance to the original image-dat...")
 
Line 1: Line 1:
===Purpose===
==Single-layer False-color image==


Reads Hitachi EEM files with Rayleigh removal.
When viewing image-data such as scores of a PCA model built on an image, the scores are formatted with accordance to the original image-data. When displaying the scores of a single PC (a single layer image), the results are displayed in false-colors. Shown in the figure below, on the left is the original image in the Image Manager window (for reference), on the right is the scores of the first component of a PCA model built on the data, note that the colormap for the scores is set to ‘jet’.


===Synopsis===


:out = hitachieemreadr(filenames, options);
[[image:T1267-f1.jpg|750px]]


===Description===


Reads HITACHI EEM text files. Data points must be tab delimited.
You may change the colormap by:
:1) Clicking on the ‘insert colorbar’ button
:2) Right clicking on the colorbar, select ‘standard colormaps’ and then select one of predefined colormaps (such as ‘jet’ or ‘hot’).


====Inputs====
You may choose ‘open colormap editor’ and create and customize your own colormap. Note that in this false-color mode, the color corresponds to the magnitude of the scores at each pixel.
* '''file''' = One of the following identifications of files to read:
:* A single string identifying the file to read
:: ('example')
:* A cell array of strings giving multiple files to read
:: ({'example_a' 'example_b' 'example_c'})
:* An empty array indicating that the user should be prompted to locate the file(s) to read
:: ([])


====Outputs====
* '''out''' = A DataSet object with date, time, info (data from cell (1,1)), variable names (vars), sample names (samps), and data matrix (data).


===Options===
[[image:T1267-f2.jpg|550px]]


options =  a structure array with the following fields:


* '''waitbar''' : [ 'off' |{'on'}] Governs use of waitbars to show progress.
You may also choose to interactively adjust the colormap by right clicking on it and select ‘Interactive Colormap Shift’, then by hovering the curser at the top or the bottom of the colormap you can click & drag (the mouse cursor will change) to adjust the colormap shift as desired.
* '''scattercorrection''' : [ {'off'} | 'on'] calls [[flucut]] for Rayleigh correction.
* '''flucut''' : [[flucut|FLUCUT]] options field for governing calls to [[flucut|FLUCUT]].
** '''LowZero''' : Option (LowZero) for [[flucut|FLUCUT]].
** '''TopZero''' : Option (TopZero) for [[flucut|FLUCUT]].
* '''LowMiss''' : Input (LowMiss) to [[flucut|FLUCUT]].
* '''TopMiss''' : Input (FopMiss) to [[flucut|FLUCUT]].
* '''textreadr''' : TEXTREADR options field for governing calls to [[textreadr|TEXTREADR]].


===See Also===


[[Data Importing Formats]], [[aqualogreadr]], [[hjyreadr]], [[jascoeemreadr]], [[jcampreadr]],
[[image:T1267-f3.jpg|350px]]
[[spcreadr]], [[writespc]], [[xclreadr]]
 
 
To select variables based in their respective values, right click on the image and select ‘Image Histogram’, a window will appear which displays a histogram of pixels in the image. Click on the ‘Select pixels from histogram’ in the upper left corner then select a region of pixels (click & drag).
 
 
[[image:T1267-f4.jpg|350px]]
 
 
==Two/Three-layer False-color image overlay==
 
When displaying two or three images in an overlay (such as scores from a PCA model), the false-color mode changes from colormap to “RGB mode” in order to accommodate the multiple layers. In “RGB mode”, the colors displayed on the image overlay reflect magnitude of each overlay/score. The data cursor tool can be used to view these RGB values at a specified location/index.
 
 
[[image:T1267-f5.jpg|450px]]
 
 
To Change the Color order, in the Plot Controls window: View -> Settings.
A setting window will open, and under ‘Image settings’ there is a field called ‘imagegunorder’ with several number (default: 1 2 3) clicking on these numbers will open a drop down selection for a desired reordering of the layers which resulting in changing their respective colors. Meaning, 1 2 3: first layer is colored red, second is colored green, and third is colored blue. Likewise, 3 2 1: third layer is colored red, second is colored green, and the first is colored blue.
 
 
 
==Multi-layer (4+) False-color image overlay==
 
When displaying more than three overlays the color mode changes to correspond to standard plot color order (so they correspond to overlaid loadings plots, for example). Meaning, the false-color displayed is the component with the highest value/score.
 
 
[[image:T1267-f6.jpg|450px]]

Revision as of 14:27, 12 May 2017

Single-layer False-color image

When viewing image-data such as scores of a PCA model built on an image, the scores are formatted with accordance to the original image-data. When displaying the scores of a single PC (a single layer image), the results are displayed in false-colors. Shown in the figure below, on the left is the original image in the Image Manager window (for reference), on the right is the scores of the first component of a PCA model built on the data, note that the colormap for the scores is set to ‘jet’.


T1267-f1.jpg


You may change the colormap by:

1) Clicking on the ‘insert colorbar’ button
2) Right clicking on the colorbar, select ‘standard colormaps’ and then select one of predefined colormaps (such as ‘jet’ or ‘hot’).

You may choose ‘open colormap editor’ and create and customize your own colormap. Note that in this false-color mode, the color corresponds to the magnitude of the scores at each pixel.


T1267-f2.jpg


You may also choose to interactively adjust the colormap by right clicking on it and select ‘Interactive Colormap Shift’, then by hovering the curser at the top or the bottom of the colormap you can click & drag (the mouse cursor will change) to adjust the colormap shift as desired.


T1267-f3.jpg


To select variables based in their respective values, right click on the image and select ‘Image Histogram’, a window will appear which displays a histogram of pixels in the image. Click on the ‘Select pixels from histogram’ in the upper left corner then select a region of pixels (click & drag).


T1267-f4.jpg


Two/Three-layer False-color image overlay

When displaying two or three images in an overlay (such as scores from a PCA model), the false-color mode changes from colormap to “RGB mode” in order to accommodate the multiple layers. In “RGB mode”, the colors displayed on the image overlay reflect magnitude of each overlay/score. The data cursor tool can be used to view these RGB values at a specified location/index.


T1267-f5.jpg


To Change the Color order, in the Plot Controls window: View -> Settings. A setting window will open, and under ‘Image settings’ there is a field called ‘imagegunorder’ with several number (default: 1 2 3) clicking on these numbers will open a drop down selection for a desired reordering of the layers which resulting in changing their respective colors. Meaning, 1 2 3: first layer is colored red, second is colored green, and third is colored blue. Likewise, 3 2 1: third layer is colored red, second is colored green, and the first is colored blue.


Multi-layer (4+) False-color image overlay

When displaying more than three overlays the color mode changes to correspond to standard plot color order (so they correspond to overlaid loadings plots, for example). Meaning, the false-color displayed is the component with the highest value/score.


T1267-f6.jpg