[Scilab-users] {EXT} How to count pixels

P M p.muehlmann at gmail.com
Thu Jun 6 13:02:03 CEST 2019


....do you mean something like this?
See example attached

It needs: Scilab Computer Vision Module


But as mentioned before:

The number of pixels you will find depend on how big you define image size
/ line width, etc.

Best regards,
Philipp

Am Mi., 5. Juni 2019 um 11:25 Uhr schrieb Stéphane Mottelet <
stephane.mottelet at utc.fr>:

> Le 05/06/2019 à 11:20, Jean-Philippe Grivet a écrit :
> > Hello,
> >
> > I am mainly interested in obtaining the ratio (number of white
> > pixels)/(number of black pixels), so that units are not of primary
> > interest.
> >
> Ok. So it is completely size/scale dependent and has to be done on the
> bitmap image. Besides exporting the figure then reloading with imread
> (present e.g. in IPCV Atoms module) I don't see other solutions.
>
> S.
>
> > Le 03/06/2019 à 15:21, Stéphane Mottelet a écrit :
> >> Le 03/06/2019 à 14:56, Jean-Philippe Grivet a écrit :
> >>> My thanks to all respondants.
> >>>
> >>> The figure is in internal Scilab firmat made up of polylines., the
> >>> border is a polygon.
> >> you did not say if you want to compute a surface in current units or
> >> really compute a surface in pixels
> >>>
> >>>
> >>> Le 03/06/2019 à 12:47, Dang Ngoc Chan, Christophe a écrit :
> >>>> Hello,
> >>>>
> >>>>> De : Jean-Philippe Grivet
> >>>>> Envoyé : lundi 3 juin 2019 12:08
> >>>>>
> >>>>> Using Scilab (6.02/Win7), I have drawn a picure made up of thick
> >>>>> lines and
> >>>>> arcs, within a region with irregular borders.
> >>>> What is the data structure of your picture?
> >>>> A matrix of dots?
> >>>> A Scilab figure containing polylines?
> >>>>
> >>>> --
> >>>> Christophe Dang Ngoc Chan
> >>>> Mechanical calculation engineer
> >>>>
> >>>> General
> >>>> 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.
> >>>> _______________________________________________
> >>>> users mailing list
> >>>> users at lists.scilab.org
> >>>>
> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
> >>>>
> >>>
> >>> ---
> >>> L'absence de virus dans ce courrier électronique a été vérifiée par
> >>> le logiciel antivirus Avast.
> >>>
> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus
> >>>
> >>>
> >>> _______________________________________________
> >>> users mailing list
> >>> users at lists.scilab.org
> >>>
> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
> >>>
> >>
> >>
> >
> > ---
> > L'absence de virus dans ce courrier électronique a été vérifiée par le
> > logiciel antivirus Avast.
> >
> https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/www.avast.com/antivirus
> >
> >
> > _______________________________________________
> > users mailing list
> > users at lists.scilab.org
> >
> https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users
> >
>
>
> --
> Stéphane Mottelet
> Ingénieur de recherche
> EA 4297 Transformations Intégrées de la Matière Renouvelable
> Département Génie des Procédés Industriels
> Sorbonne Universités - Université de Technologie de Compiègne
> CS 60319, 60203 Compiègne cedex
> Tel : +33(0)344234688
> http://www.utc.fr/~mottelet
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20190606/18a9b473/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_countPixels.sce
Type: application/octet-stream
Size: 1712 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20190606/18a9b473/attachment.obj>


More information about the users mailing list