Actually this one.. and its the last..<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 2:59 PM, inshu chauhan <span dir="ltr"><<a href="mailto:insideshoes@gmail.com" target="_blank">insideshoes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Please Ignore the above two files attached,,, See this one <br><div class="HOEnZb"><div class="h5"><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 12:47 PM, inshu chauhan <span dir="ltr"><<a href="mailto:insideshoes@gmail.com" target="_blank">insideshoes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I attached a wrong file...Right file is attached here <br><div><div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 9, 2012 at 11:53 AM, inshu chauhan <span dir="ltr"><<a href="mailto:insideshoes@gmail.com" target="_blank">insideshoes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div><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><div><br>No i haven't downloaded it.. and this site is not opening...  <br></div><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><div><br>This site is also blocked here. <br></div><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><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><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><div><br>I am using 2.7.3 on windows 7  <br><br></div><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><div><br>The only extra libary i am using is Opencv , downloaded from <a href="http://sourceforge.net/projects/opencvlibrary/" target="_blank">http://sourceforge.net/projects/opencvlibrary/</a><br>



<br> <br></div><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><div>import cv  <br><br></div><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><div>see attached file  <br></div><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><div><br>Yes I am running it through IDLE GUI <br> <br></div><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><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 ]<div>


<br>
error: index is out of range<br><br></div>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><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><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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>