# Image Sampler Inaccurate Mapping

**URL:** <https://discourse.mcneel.com/t/image-sampler-inaccurate-mapping/86730>\
**Category:** Grasshopper\
**Tags:** error, bitmap, grasshopper, imagesampler\
**Created:** [July 27, 2019, 9:10am UTC](https://discourse.mcneel.com/t/image-sampler-inaccurate-mapping/86730 "2019-07-27T09:10:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mew1356](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mew1356/32/167541_2.png) [@mew1356](https://discourse.mcneel.com/u/mew1356)\
**Post date:** [July 27, 2019, 9:10am UTC](https://discourse.mcneel.com/t/image-sampler-inaccurate-mapping/86730/1 "2019-07-27T09:10:57Z")

</div>

[Error 1.3dm](https://discourse.mcneel.com/uploads/short-url/33yE6l0RVdSKXjOEdcPnKMzZ8Xa.3dm) (3.1 MB) [Error 1.gh](https://discourse.mcneel.com/uploads/short-url/pfdarpTM1IjAQw2LdMaTRIW5i0S.gh) (8.7 KB)

 ![test](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/d/4/d427795b8ffeeca9d25d4bf3d4408ae689943b2a.png)

Hi, I am new to image sampler and I am experiencing issues whereby the sampling of the image i used appears to be inaccurate. I could not understand what is the cause of the error I have tried to simplify my script as much as possible. I would appreciate if somebody can help me with this. Thank You.

 ![error](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/5/c5cf2040c2badeb329b4c8c7e504a44789fae542.png)

---

<div class="post-metadata">

**Author:** ![HS\_Kim](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/hs_kim/32/473975_2.png) [@HS\_Kim](https://discourse.mcneel.com/u/HS_Kim)\
**Post date:** [July 27, 2019, 10:11am UTC](https://discourse.mcneel.com/t/image-sampler-inaccurate-mapping/86730/2 "2019-07-27T10:11:24Z")

</div>

> [@mew1356](#):
>
> the sampling of the image i used appears to be inaccurate. I could not understand what is the cause of the error

As you can see, that’s because you provided the wrong X & Y domain of Image Sampler. You don’t have to change the default domain(which is 0 to 1) if you reparameterize the surface input.

 ![Canvas%20at%2018%3B57%3B48-2](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/2/9/2931caa82987af6d66b04ef0ae32c6cb6b354cfb.png)  
 ![Canvas%20at%2018%3B57%3B48](https://global.discourse-cdn.com/mcneel/uploads/default/original/3X/c/9/c995737edafd032f7e2b07140b70b2a36ce3fbb0.png)  
[Error 1\_re.gh](https://discourse.mcneel.com/uploads/short-url/1e0NABO5uYRE77h0wrEbNExlRZi.gh) (9.1 KB)

---

<div class="post-metadata">

**Author:** ![mew1356](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/mew1356/32/167541_2.png) [@mew1356](https://discourse.mcneel.com/u/mew1356)\
**Post date:** [July 27, 2019, 10:34am UTC](https://discourse.mcneel.com/t/image-sampler-inaccurate-mapping/86730/3 "2019-07-27T10:34:38Z")

</div>

Thank you, I understand it now!
