# How to locate a position of a colour in a photo

**URL:** <https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356>\
**Category:** programming\
**Created:** [February 1, 2019, 1:37am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356 "2019-02-01T01:37:59Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shine\_Priyan](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shine\_Priyan](https://forum.kirupa.com/u/Shine_Priyan)\
**Post date:** [February 1, 2019, 1:37am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/1 "2019-02-01T01:37:59Z")

</div>

How to get the position of a particular pixel in a photo.

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [February 1, 2019, 2:22am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/2 "2019-02-01T02:22:03Z")

</div>

How do you know which pixel it is you want to get the position of?

---

<div class="post-metadata">

**Author:** ![Shine\_Priyan](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shine\_Priyan](https://forum.kirupa.com/u/Shine_Priyan)\
**Post date:** [February 1, 2019, 3:19am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/3 "2019-02-01T03:19:23Z")

</div>

I know the color of that pixel and all other parts have different pixel

---

<div class="post-metadata">

**Author:** ![Shine\_Priyan](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shine\_Priyan](https://forum.kirupa.com/u/Shine_Priyan)\
**Post date:** [February 1, 2019, 3:22am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/4 "2019-02-01T03:22:14Z")

</div>

I mean all other pixel have different colour

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [February 1, 2019, 4:19am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/5 "2019-02-01T04:19:36Z")

</div>

what are you using?

---

<div class="post-metadata">

**Author:** ![Shine\_Priyan](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shine\_Priyan](https://forum.kirupa.com/u/Shine_Priyan)\
**Post date:** [February 1, 2019, 4:41am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/6 "2019-02-01T04:41:01Z")

</div>

So actually the set up is bit different  
Basically there is an image which has one point at a particular position and I want to access the coordinate of that point

---

<div class="post-metadata">

**Author:** ![Shine\_Priyan](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shine\_Priyan](https://forum.kirupa.com/u/Shine_Priyan)\
**Post date:** [February 1, 2019, 4:43am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/7 "2019-02-01T04:43:58Z")

</div>

I am planning to start a company, I am from India and I don’t know coding exactly , considering Mr.Kirupa is from India I wish to make a deal with him  
Hence I would like to know if we both can collaborate

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [February 1, 2019, 7:51am UTC](https://forum.kirupa.com/t/how-to-locate-a-position-of-a-colour-in-a-photo/639356/8 "2019-02-01T07:51:29Z")

</div>

This might help: [javascript - How to check if a specific pixel of an image is transparent? - Stack Overflow](https://stackoverflow.com/a/8751659)

> [@Shine\_Priyan](#):
>
> I am planning to start a company, I am from India and I don’t know coding exactly , considering Mr.Kirupa is from India I wish to make a deal with him  
> Hence I would like to know if we both can collaborate

No.

😜
