Navigation

  • index
  • modules |
  • interface methods |
  • next |
  • previous |
  • Dragonfly 2021.1 documentation »

Code snippetsΒΆ

This section contains examples of code.

  • 1. Using Numpy arrays to modify data of a dataset
    • 1.1. How to extract a Numpy Array from a Channel
    • 1.2. How to create a Channel from a Numpy Array
    • 1.3. How to modify a Channel values
    • 1.4. How to pad a Channel
  • 2. Manipulating ROIs
    • 2.1. How to use a ROI as mask for operation on Channel
    • 2.2. How to do logical operation on ROI and MultiROI
    • 2.3. How to pad a ROI
  • 3. Annotations
    • 3.1. How to create a VisualRuler on the current View
  • 4. Spatial transformations
    • 4.1. Getting the transform of a StructuredGrid
    • 4.2. How to transform a vector or a coordinate in the referential of a StructuredGrid to the world referential
    • 4.3. How to apply an affine transform to a StructuredGrid
    • 4.4. How to apply an affine transform to an UnstructuredGrid
  • 5. Context
    • 5.1. How to switch state of current context
    • 5.2. How to get all the selected objects of a given class
  • 6. Movie maker
    • 6.1. How to show or hide the movie maker
    • 6.2. How to add key frame the movie maker
  • 7. Manipulating LUTs
    • 7.1. How to apply a LUT to a Channel
    • 7.2. How to create a discrete LUT and apply it to a Channel
  • 8. Manipulating Views
    • 8.1. How to split the display in 2 scenes, and choosing what is displayed
  • 9. Macro logging
    • 9.1. How to log calls to the model
    • 9.2. How to create a simple macro to erode an image

Logo

Previous topic

Setup for development with PyCharm

Next topic

1. Using Numpy arrays to modify data of a dataset

This Page

  • Show Source

Quick search

Navigation

  • index
  • modules |
  • interface methods |
  • next |
  • previous |
  • Dragonfly 2021.1 documentation »
© Copyright 2021, Object Research Systems (ORS), Inc.. Created using Sphinx 1.7.4.