# Seed widget with custom callback to get coordinates of dicom images

**URL:** https://discourse.vtk.org/t/seed-widget-with-custom-callback-to-get-coordinates-of-dicom-images/2484
**Category:** Support
**Created:** [January 23, 2020, 10:05am UTC](https://discourse.vtk.org/t/seed-widget-with-custom-callback-to-get-coordinates-of-dicom-images/2484 "2020-01-23T10:05:43Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pooja](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/p/a5b964/32.png) [@Pooja](https://discourse.vtk.org/u/Pooja)
#### Post date: [January 23, 2020, 10:05am UTC](https://discourse.vtk.org/t/seed-widget-with-custom-callback-to-get-coordinates-of-dicom-images/2484/1 "2020-01-23T10:05:43Z")

</div>

Hello,

I need to get coordinates of dicom image using VTK and QT.  
I tried SeedWidgetWithCustomCallback example from VTK examples. It gives me x, y coordinates of QWidget render window (OVTKWidget or QVTKOpengl).  
My dicom image displays at around center of render window. The dicom image is 512_512 originally, but in render window, it seems compressed less than 512_512 size.  
When I click on image several times, coordinates seems correct, but that does not help in further segmentation procedure.

So i have questions,

1. Is SeedWidgetWithCustomCallback good option to get coordinates of dicom image in QT gui application? Or is there any better option available?
2. Does SeedWidgetWithCustomCallback gives correct dicom coordinates generally? Can I use it in my segmentation directly? Or do I have to transform it into something else? and how?

Please someone help me to get solutions.  
Thank you in advance.

---

<div class="post-metadata">

### Author: ![Paulo\_Carvalho](https://discourse.vtk.org/user_avatar/discourse.vtk.org/paulo_carvalho/32/370_2.png) [@Paulo\_Carvalho](https://discourse.vtk.org/u/Paulo_Carvalho)
#### Post date: [January 25, 2020, 11:50am UTC](https://discourse.vtk.org/t/seed-widget-with-custom-callback-to-get-coordinates-of-dicom-images/2484/2 "2020-01-25T11:50:31Z")

</div>

Hello, Pooja, g’day,

What do you mean by

> [@Pooja](#):
>
> The dicom image is 512 _512 originally, but in render window, it seems compressed less than 512_ 512 size.

?

Can you post some figures illustrating the issue?

kind regards,

Paulo
