# Image Indexing

**URL:** <https://forums.openmv.io/t/image-indexing/1841>\
**Category:** OpenMV Boards\
**Created:** [July 23, 2020, 1:15pm UTC](https://forums.openmv.io/t/image-indexing/1841 "2020-07-23T13:15:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GL-ITC](https://avatars.discourse-cdn.com/v4/letter/g/7993a0/32.png) [@GL-ITC](https://forums.openmv.io/u/GL-ITC)\
**Post date:** [July 23, 2020, 1:15pm UTC](https://forums.openmv.io/t/image-indexing/1841/1 "2020-07-23T13:15:25Z")

</div>

Hi,

When you have an image object and you index into it

```python
img[0]

```

to get a pixel value, where is the source code that executes that operation out of interest?

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [July 23, 2020, 3:05pm UTC](https://forums.openmv.io/t/image-indexing/1841/2 "2020-07-23T15:05:48Z")

</div>

[https://github.com/openmv/openmv/blob/master/src/omv/py/py\_image.c#L388](https://github.com/openmv/openmv/blob/master/src/omv/py/py_image.c#L388)
