Create a CSV file from image file.
This component can be used to create a CSV file of any grayscale or color image file, where column "X" is the X coordinate of the pixel [0-width], "Y" is the Y coordinate of the pixel [0-height] and the "Intensity" column is the intensity. Intensities are expressed as float values 0-1. In the case of color images R,G,B columns are written.
Version | 1.1 |
---|---|
Bundle | anima |
Categories | Image Transformation |
Authors | Ville Rantanen (ville.rantanen@helsinki.fi) |
Issue tracker | View/Report issues |
Requires | Python ; python-scipy (DEB) ; python-imaging (DEB) |
Source files | component.xml Image2CSV.py |
Usage | Example with default values |
Name | Type | Mandatory | Description |
---|---|---|---|
in | ImageList | Mandatory | Source image. |
mask | ImageList | Optional | mask image. Pixels outside mask area will be marked "NA" |
Name | Type | Description |
---|---|---|
out | CSV | Resulting pixel values data. |
Name | Type | Default | Description |
---|---|---|---|
color | boolean | false | Set true to store RGB values. Saves only grayscale intensity by default. |
convertFloat | boolean | true | Converts values to float (0-1). Set false for original data type (8 bit or 16 bit integer) |
includeNonMask | boolean | true | If disabled, output does not contain coordinates outside mask image. |
Test case | Parameters▼ | IN in |
IN mask |
OUT out |
||
---|---|---|---|---|---|---|
case1 | properties | in | (missing) | out | ||
|
||||||
case2 | properties | in | mask | out | ||
includeNonMask=false, |