# reading pixel value 

**URL:** <https://discourse.slicer.org/t/reading-pixel-value/9051>\
**Category:** Development\
**Created:** [November 6, 2019, 11:22pm UTC](https://discourse.slicer.org/t/reading-pixel-value/9051 "2019-11-06T23:22:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abir\_frad](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/abir_frad/32/5093_2.png) [@abir\_frad](https://discourse.slicer.org/u/abir_frad)\
**Post date:** [November 6, 2019, 11:22pm UTC](https://discourse.slicer.org/t/reading-pixel-value/9051/1 "2019-11-06T23:22:47Z")

</div>

Hi everyone  
I am using an exemple of segmentation that need a seed point  
and I want to manually enter the value,is it possible to read pixel value from an image directly using 3D slicer

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [November 6, 2019, 11:45pm UTC](https://discourse.slicer.org/t/reading-pixel-value/9051/2 "2019-11-06T23:45:26Z")

</div>

These examples should help:

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_volume\_voxel\_coordinates\_from\_markup\_fiducial\_RAS\_coordinates](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_volume_voxel_coordinates_from_markup_fiducial_RAS_coordinates)

[https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get\_value\_of\_a\_volume\_at\_specific\_voxel\_coordinates](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Get_value_of_a_volume_at_specific_voxel_coordinates)

If you have a segmentation method then you can create a plugin for conveniently accessing it from the Segment Editor. See examples [here](https://github.com/lassoan/SlicerSegmentEditorExtraEffects). Most effects use painted seed as input, but some just take a user click, while others markup points.
