<div dir="ltr"><div>....do you mean something like this?</div><div>See example attached</div><div><br></div><div>It needs: Scilab Computer Vision Module</div><div><br></div><div><br></div><div>But as mentioned before:</div><div><br></div><div>The number of pixels you will find depend on how big you define image size / line width, etc.</div><div><br></div><div>Best regards,</div><div>Philipp<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 5. Juni 2019 um 11:25 Uhr schrieb Stéphane Mottelet <<a href="mailto:stephane.mottelet@utc.fr">stephane.mottelet@utc.fr</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le 05/06/2019 à 11:20, Jean-Philippe Grivet a écrit :<br>
> Hello,<br>
><br>
> I am mainly interested in obtaining the ratio (number of white <br>
> pixels)/(number of black pixels), so that units are not of primary <br>
> interest.<br>
><br>
Ok. So it is completely size/scale dependent and has to be done on the <br>
bitmap image. Besides exporting the figure then reloading with imread <br>
(present e.g. in IPCV Atoms module) I don't see other solutions.<br>
<br>
S.<br>
<br>
> Le 03/06/2019 à 15:21, Stéphane Mottelet a écrit :<br>
>> Le 03/06/2019 à 14:56, Jean-Philippe Grivet a écrit :<br>
>>> My thanks to all respondants.<br>
>>><br>
>>> The figure is in internal Scilab firmat made up of polylines., the <br>
>>> border is a polygon.<br>
>> you did not say if you want to compute a surface in current units or <br>
>> really compute a surface in pixels<br>
>>><br>
>>><br>
>>> Le 03/06/2019 à 12:47, Dang Ngoc Chan, Christophe a écrit :<br>
>>>> Hello,<br>
>>>><br>
>>>>> De : Jean-Philippe Grivet<br>
>>>>> Envoyé : lundi 3 juin 2019 12:08<br>
>>>>><br>
>>>>> Using Scilab (6.02/Win7), I have drawn a picure made up of thick <br>
>>>>> lines and<br>
>>>>> arcs, within a region with irregular borders.<br>
>>>> What is the data structure of your picture?<br>
>>>> A matrix of dots?<br>
>>>> A Scilab figure containing polylines?<br>
>>>><br>
>>>> -- <br>
>>>> Christophe Dang Ngoc Chan<br>
>>>> Mechanical calculation engineer<br>
>>>><br>
>>>> General<br>
>>>> This e-mail may contain confidential and/or privileged information. <br>
>>>> If you are not the intended recipient (or have received this e-mail <br>
>>>> in error), please notify the sender immediately and destroy this <br>
>>>> e-mail. Any unauthorized copying, disclosure or distribution of the <br>
>>>> material in this e-mail is strictly forbidden.<br>
>>>> _______________________________________________<br>
>>>> users mailing list<br>
>>>> <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
>>>> <a href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a> <br>
>>>><br>
>>><br>
>>> ---<br>
>>> L'absence de virus dans ce courrier électronique a été vérifiée par <br>
>>> le logiciel antivirus Avast.<br>
>>> <a href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus</a> <br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> users mailing list<br>
>>> <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
>>> <a href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a> <br>
>>><br>
>><br>
>><br>
><br>
> ---<br>
> L'absence de virus dans ce courrier électronique a été vérifiée par le <br>
> logiciel antivirus Avast.<br>
> <a href="https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus</a> <br>
><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
> <a href="https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users</a> <br>
><br>
<br>
<br>
-- <br>
Stéphane Mottelet<br>
Ingénieur de recherche<br>
EA 4297 Transformations Intégrées de la Matière Renouvelable<br>
Département Génie des Procédés Industriels<br>
Sorbonne Universités - Université de Technologie de Compiègne<br>
CS 60319, 60203 Compiègne cedex<br>
Tel : +33(0)344234688<br>
<a href="http://www.utc.fr/~mottelet" rel="noreferrer" target="_blank">http://www.utc.fr/~mottelet</a><br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>