ZEISS Knowledge Base
Help
ZEISS Knowledge Base

Segmenting objects into equal parts in arivis Pro

This guides goal is to guide the scientists in the workflow for segmenting objects into smaller equal parts and create 3D bounding-box objects surrounding them. The application note includes the steps to import the data and object to be segmented.

 

Import the image set(s) in arivis Pr

  1. Import the experiment data into a single image set by simple drag-and-drop into arivis Pro window.

 

Source: The above example data was made available through the courtesy of

Mehwish Anwer, PhD

Team of Professor Cheryl Wellington

University Of British Columbia

Download the Anaconda package

  1. Open the Anaconda web pages using the following link: https:/anaconda.org
  2. Select the Download Anaconda item
  3. Click on Download

    Note: The Individual Edition is Open source and freely distributable.
  4. Click on 64-bit Graphical Installer

    Note: The Individual Edition is Open source and freely distributable
  1. The download task starts.

Install the Anaconda package

  1. Open the Download folder and locate the Anaconda3 setup file.
  2. Run it and press the Next button on the setup dialog.

    Note: The Python release must be at least 3.8.
  3. Click on the I Agree button to accept the License Agreement terms.
  4. Select the Just Me option.
  5. Press the Next button to complete the installation.

Install the Anaconda environment

  1. Select the Environments tab in Anaconda:
  2. Select ‘Import’ the Environment on the bottom:
  3. Import the skeleton environment from the .yml file on your computer, which can be downloaded from here:

Test python Registration environment in arivis Pro

In order to run the image registration script, the corresponding python environment should be already installed on the workstation using the Anaconda distribution. Detailed instructions on how to set up this environment are provided in Install Anaconda Python for Vision4D article.

  1. Run arivis Pro (4.1.1 and next release) select the Preferences item from the Extras menu.
  2. On the left panel, click on the Scripting item.
  3. Enable the Anaconda Environment option. Browse the Anaconda3 installation folder and select the arivis_skeleton_env created previously.
    Note: By default, the new environments are stored under the \envs folder located in the Anaconda3 installation folder  e.g. C:\users\xxxxxx\Anaconda3\envs\arivis_skeleton_env
  4. Install the arivis package.
  5. Run the Compatibility test.
  6. Test completed successfully:
  7. Test failed:

    Note: If the above error message is issued, try again to install the arivis python package.

Run the python script in arivis Pro

In order to run the script, the objects of interest should first be created and/or imported into the pipeline. We suggest first testing this operator on a small subset of the objects. Running it on the large dataset might take a few hours as well. The script can be downloaded here.

  1. Create or Import the object of interest that is to be segmented.
  2. Select the Python Segment Modifier operator and use the  button to upload the operator script.

Input_Tag: object tag to use for segmentation.

Input_channel: channel to run the script on.

Width_in_pixels_vertical: Vertical width of the segments in pixels.

Width_in_pixels_horizontal: Horizontal width of the segments in pixels.

Visualization of the results

Once the script is executed, the segments with 3D bounding boxes will be displayed as objects. By default, they will be assigned random color to differentiate between the different objects.

Impressum
Carl-Zeiss-Strasse 22
73447 Oberkochen
Germany
Legal