ZEISS Knowledge Base
Help
ZEISS Knowledge Base

Creating spiral oriented sub volume»

This guide explains how to create spiral based boxes.

The boxes can be used as ROIs for further analysis (Compartmentalization, gradient distribution, heat map, etcetera)

Loading the Python script

  1. Open Python Script Editor. From the Extra menu, select Script Editor.
  2. Load the Free-Oriented Sub-volume Python Script.
  3. Browse the folder on which the file has been saved.
Python script code overview
Python script code overview

Only the parameters located in the USER SETTING area can be modified. Don’t change any other number, definition or text in the code outside this dedicated area.

Setting the script features

  1. In order to define the spiral distributed sub-regions (sampling volume) features, some parameters of the script should be adjusted to match your analysis needs. These parameters are located in the code area labeled as USER SETTING.
  1. Set the Z planes range.
    FIRST_PLANE defines the lower Z plane of the sub-regions ROI.
    LAST_PLANE defines the higher Z plane of the sub-regions ROI.
    The values of -1 set the Z planes range equal to the whole volume depth (total number of Z Planes available).
  2. STEP_ANGLE defines the step size in degrees. The boxes will be positioned on the spiral curve every STEP_ANGLE.
  3. SPIRAL_LOOP defines the number of loops (concentric spirals). Any single loop is a complete 360° spiral. Values less than 1.0 draw a partial spiral.

  4. COEFFICENT_B is the coefficient used to define the distance between the loops of the concentric spiral.

  5. BOX_HEIGHT sets the height of the boxes (Y).
    BOX_WIDTH sets the width of the boxes (X).
    Both are expressed in pixels.

Set the distance of the loops and their numbers according to the size of the boxes. Wrong parameters setting can make the boxes overlap, especially inside the inner part of the spiral.

Running the Python script

Run the Spiral Oriented Sub Volume Python Script by pressing the Run Script button or pressing the F5 key.

Note: Activate the Output Panel, if not already displayed. The status of the script execution (errors including) will be visualized here.

Viewing the results

  1. Results (segments and measurements) will be stored in the dataset only if the Store Objects operator has been correctly set. Tick appropriately the option as shown below before complete the pipeline execution.
  1. Open the data table if not already visible.
  2. Measurements are now visible in the data table​.

    Note: The spots count in the single sub-region is shown in the data table.​ The empty sub-regions are not listed.​ To get the total spots count the group statistic feature must be used. ​

Features can be added or removed from the data table using the Feature Column command.

Impressum
Carl-Zeiss-Strasse 22
73447 Oberkochen
Germany
Legal