<br><div class="gmail_extra"><br><br><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<a href="http://www.ymlgroup.com/obscurehiddenlocation/downloads" target="_blank">http://www.ymlgroup.com/obscurehiddenlocation/downloads</a> site, and<br>
imported  it using  from notzanzibar import DataType.<br></blockquote><div><br>No i haven't downloaded it.. and this site is not opening...  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
Then you'd have instantiated it in some code like<br>
  data = DataType(filename)<br>
<br>
and then the type of data would be notzanzibar.DataType  and the docs<br>
would be probably available somewhere on <a href="http://www.invalid.com/docs" target="_blank">www.invalid.com/docs</a><br></blockquote><div><br>This site is also blocked here. <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
The only new guess:<br>
<br>
A 3D image would presumably have 3 subscripts, and you're only supplying<br>
two.<br></blockquote><div><br>Yes a 3D image has 3 subscripts but m trying to access all three through using only  2 subsscripts i.e X and Y<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
If you want help, be explicit:<br>
<br>
1) what version of CPython are you using, and on what OS?<br></blockquote><div><br>I am using 2.7.3 on windows 7  <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

2) what web site did you download some extra library from ?<br></blockquote><div><br>The only extra libary i am using is Opencv , downloaded from <a href="http://sourceforge.net/projects/opencvlibrary/">http://sourceforge.net/projects/opencvlibrary/</a><br>
<br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
3) what import statement did you use ?<br></blockquote><div> </div><div>import cv  <br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
4) How are all those global variables initialized ?<br></blockquote><div>see attached file  <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

5) What command did you use to start the script ?  Did you run it from<br>
<a href="http://command.com" target="_blank">command.com</a>, or from some IDE ?<br></blockquote><div><br>Yes I am running it through IDLE GUI <br> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

5) Exactly what error message did you get, including the traceback ?<br></blockquote><div> </div><div> Traceback (most recent call last):<br>  File "Z:\modules\Masking_an_image_dynamically.py", line 155, in <module><br>
    AccessPixels(data)<br>  File "Z:\modules\.py", line 147, in  AccessPixels<br>    CreateMask(data, x, y)<br>  File "Z:\modules\new_classification.py", line 110, in CreateMask<br>    point = data[iy, ix ]<br>
error: index is out of range<br><br>The line numbers here and the file attached may be different because I have removed a lot of print statements which I was using to debug the error..<br></div><div><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

6) What have you done to try to figure out your own error?<br></blockquote><div><br>I have trying print out variables and Indices at each step.. <br></div><div><br><br>Zero Piraeus : Where are you ? <br></div><br></div><br>
</div>