Cross Sections: Difference between revisions
Jump to navigation
Jump to search
Created page with "The user can show a cross section profile of an image by pressing the cross-section button at the top right of the image area." |
No edit summary |
||
| (12 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
The user can show a cross section profile of an image by pressing the cross-section button at the top right of the image area. | ==Description== | ||
[[File:CrossSectionExample.PNG|thumb|right|Image with cross section display turned on]] | |||
The user can show a cross section profile of an image by pressing the cross-section button at the top right of the image area. The button is translucent until cross sectioning is enabled. | |||
[[File:CrossSectionIcon.png|thumb|center|The Cross Section icon in inactive mode]] | |||
<br clear="all"/> | |||
==Saving Cross Section Data== | |||
[[File:CrossSectionSave.png|thumb|right|Menu for saving cross sections]] | |||
By right-clicking on the cross cross section region, the cross section data can be saved to a file in the following formats: | |||
* XML | |||
* CSV | |||
* Binary (See below) | |||
* JSON | |||
By default, the export will save in the directory of the original collection. | |||
[[File:CrossSectionSaveOptions.png|thumb|center|Save options.]] | |||
===Binary Format=== | |||
The Cross Section binary format is as follows. All numeric values are little-endian format. | |||
* A header consisting of: | |||
** 1-byte version # | |||
** 4-byte String ID in ASCII ("OKOS") | |||
* Horizontal Cross-section data: | |||
** 1-byte id for the Horizontal cross section data (ASCII "H") | |||
** 4-byte (int32) # of horizontal cross sections. As of this writing it should only be 1. | |||
** 4-byte (int32) Minimum cross section raw value (e.g., 0) | |||
** 4-byte (int32) Maximum cross section raw value (e.g. 128 for 8-bit data) | |||
** 8-byte (double) Minimum cross section value in units (e.g. 0 ) | |||
** 8-byte (double) Range of cross section values in units (e.g. 100) | |||
** 4-byte (int32) length of the units string (below) | |||
** n-byte ASCII representation of the cross section value units (e.g. "%FSH") | |||
** 8-byte (double) of the resolution between samples | |||
** 4-byte (int32) length of the sample units string (below) | |||
** n-byte ASCII representation of the sample units string (e.g. "mm") | |||
** 4-byte (int32) number of cross section samples | |||
** n-byte (int32) cross section samples. each sample is a 4-byte integer. | |||
* Vertical cross section data: | |||
** 1-byte id for the Vertical cross section data (ASCII "V") | |||
** All other entries are identical to the Horizontal cross-section data description above. | |||
Latest revision as of 14:23, 10 June 2026
Description
The user can show a cross section profile of an image by pressing the cross-section button at the top right of the image area. The button is translucent until cross sectioning is enabled.

Saving Cross Section Data

By right-clicking on the cross cross section region, the cross section data can be saved to a file in the following formats:
- XML
- CSV
- Binary (See below)
- JSON
By default, the export will save in the directory of the original collection.

Binary Format
The Cross Section binary format is as follows. All numeric values are little-endian format.
- A header consisting of:
- 1-byte version #
- 4-byte String ID in ASCII ("OKOS")
- Horizontal Cross-section data:
- 1-byte id for the Horizontal cross section data (ASCII "H")
- 4-byte (int32) # of horizontal cross sections. As of this writing it should only be 1.
- 4-byte (int32) Minimum cross section raw value (e.g., 0)
- 4-byte (int32) Maximum cross section raw value (e.g. 128 for 8-bit data)
- 8-byte (double) Minimum cross section value in units (e.g. 0 )
- 8-byte (double) Range of cross section values in units (e.g. 100)
- 4-byte (int32) length of the units string (below)
- n-byte ASCII representation of the cross section value units (e.g. "%FSH")
- 8-byte (double) of the resolution between samples
- 4-byte (int32) length of the sample units string (below)
- n-byte ASCII representation of the sample units string (e.g. "mm")
- 4-byte (int32) number of cross section samples
- n-byte (int32) cross section samples. each sample is a 4-byte integer.
- Vertical cross section data:
- 1-byte id for the Vertical cross section data (ASCII "V")
- All other entries are identical to the Horizontal cross-section data description above.