<div dir="ltr"><div><div>Hi again:<br><br></div>For SIVP to work for you - you must point to an image file you can modify this code snippet for your own purpose below:<br><pre style="font-family:Monospaced;font-style:normal">
<span style="background-color:rgb(255,255,255)"><span style="color:rgb(1,168,1)">// point and read the test image file SIVP converts everything to 8-bit integer </span>
<span style="color:rgb(0,0,0)">imgmat</span> <span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(50,185,185)">imread</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(188,143,143)">C:\Users\Your User Name\ Your Documents\Your images\yourimagefile.jpg</span><span style="color:rgb(188,143,143)">'</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(1,168,1)">// check for matrix size and dimensions here</span>
<span style="color:rgb(50,185,185)">size</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgmat</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(1,168,1)">// show to the screen image of sample matrix</span>
<span style="color:rgb(174,92,176);text-decoration:underline">imshow</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgmat</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(1,168,1)">// convert to grayscale</span>
<span style="color:rgb(0,0,0)">gscale</span><span style="color:rgb(92,92,92)">=</span> <span style="color:rgb(174,92,176);text-decoration:underline">rgb2gray</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">imgmat</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline">imshow</span><span style="color:rgb(74,85,219)">(</span><span style="color:rgb(0,0,0)">gscale</span><span style="color:rgb(74,85,219)">)</span><span style="color:rgb(0,0,0)">;</span></span><br>
</pre>I hope this helps!<br><br></div><div>Regards,<br>Berns B.<br></div><div>USC Physics (Cebu, Philippines)<br><br></div><div><br></div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 8, 2013 at 4:54 PM, Dang, Christophe <span dir="ltr"><<a href="mailto:Christophe.Dang@sidel.com" target="_blank">Christophe.Dang@sidel.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
De la part de scilab_user123<br>
Envoyé : vendredi 8 mars 2013 03:30<br>
<div class="im"><br>
> x=gray_imread('......') , it said something like ' undefined variable:<br>
> gray_imread '.<br>
<br>
</div>which means that the function is not defined.<br>
<div class="im"><br>
> I already have SIVP installed<br>
<br>
</div>The use of a search engine says that gray_imread() belongs to SIP<br>
<br>
<a href="http://siptoolbox.sourceforge.net/" target="_blank">http://siptoolbox.sourceforge.net/</a><br>
<br>
(which is not mentionned in the McNamee document) and not to SIVP.<br>
<br>
For the SIVP functions, you may look at<br>
<br>
<a href="http://sivp.sourceforge.net/func-list-0.5.0/whatis.htm" target="_blank">http://sivp.sourceforge.net/func-list-0.5.0/whatis.htm</a><br>
<br>
Best regards.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Christophe Dang Ngoc Chan<br>
Mechanical calculation engineer<br>
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error), please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>