# \#dataobject

**URL:** https://discourse.itk.org/tag/dataobject/167.md

[Latest](https://discourse.itk.org/latest.md) · [Categories](https://discourse.itk.org/categories.md) · [Tags](https://discourse.itk.org/tags.md)

---

## [How to pass C++ itk::Image to Python](https://discourse.itk.org/t/how-to-pass-c-itk-image-to-python/3547)

<div class="topic-metadata">

**Author:** [@cchriste](https://discourse.itk.org/u/cchriste)\
**Replies:** 8\
**Last updated:** [November 24, 2020, 4:07pm UTC](https://discourse.itk.org/t/how-to-pass-c-itk-image-to-python/3547 "2020-11-24T16:07:11Z")

</div>

We have a C++ application-specific class that uses an ITK image under the hood. We also expose a Python interface to our class from which we want to provide access to its itk::Image member. Best guess at how this might …

---

## [AddObserver on DataObject](https://discourse.itk.org/t/addobserver-on-dataobject/3275)

<div class="topic-metadata">

**Author:** [@Come](https://discourse.itk.org/u/Come)\
**Replies:** 3\
**Last updated:** [July 10, 2020, 5:51pm UTC](https://discourse.itk.org/t/addobserver-on-dataobject/3275 "2020-07-10T17:51:49Z")

</div>

Hi, I want to add an observer to an image to know when it is modified. I tried the code below based on this example. #include \<itkImage.h\> #include \<itkRandomImageSource.h\> #include \<itkCommand.h\> class MyCommand : pu…

---

## [Update two dependent itk::DataObject](https://discourse.itk.org/t/update-two-dependent-itk-dataobject/3269)

<div class="topic-metadata">

**Author:** [@Come](https://discourse.itk.org/u/Come)\
**Replies:** 3\
**Last updated:** [July 7, 2020, 2:21pm UTC](https://discourse.itk.org/t/update-two-dependent-itk-dataobject/3269 "2020-07-07T14:21:22Z")

</div>

Hi, I created two itk::DataObject that are dependent and I would like to update both of them when any of the two is modified. I wonder if there is an easy way to do that (i.e. send a notification, from a DataObject, to …
