This guide explains how to create concentric objects based on the source segments shape, from the outside to the inside. The concentric shapes can be used as ROIs for further analysis (Compartmentalization, gradient distribution, heat map, etc.).
This guide explains how to create concentric objects based on the source segments shape, from the outside to the inside. The concentric shapes can be used as ROIs for further analysis (Compartmentalization, gradient distribution, heat map, etc.).
Python script code usage rights:The user has the permission to use, modify and distribute this code, as long as this copyright notice remains part of the code itself: Copyright(c) 2021 arivis AG, Germany. All Rights Reserved.
In order to define the "Matryoshka" based model sub-regions 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.
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.
TAG_DESCRIPTOR : Set the source object(s) TAG. The outer shape of this/these object(s) is used to create the concentric, inner, sub-volumes.TAG_SCRIPT_DESCRIPTOR : It defines the new TAG with which the concentric objects will be identified. The source object ID is added to the TAG.MATRYOSHKA_DOLL_NUM : Sets the total number of concentric sub-volumes. The parameter includes the outer source shape.APPLY_CONVEX_HULL : If True, the convex hull algorithm is applied.MATRYOSHKA_WITH_HOLES : If True, the inner sub-volume is subtracted from the outer contiguous shape.The MATRYOSHKA_WITH_HOLES parameter changes with how the inner sub-volume of each Doll is computed. It can be hollow or filled.
MATRYOSHKA_WITH_HOLES = True
MATRYOSHKA_WITH_HOLES = False
Run the Matryoshka_doll_revxx Python Script by pressing the Run Script button or by pressing the F5 key.
Activate the Output Panel, if not already displayed. The status of the script execution (errors including) will be visualized here.