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

2019-06-09 Thread Tan Chin Luh
Hi, sorry to interrupt, the following lines should work in IPCV to count the white and black pixels: 1. after imread, the image return as boolean as the image is an binary image. 2. assume that you have previous code and imread the image and the scilab variable for the image is "img" -->

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

2019-06-07 Thread P M
... the code should work under win7 if you have the *scicv*-module installed via atoms. Note that you have to "activate" scicv to use its functionshence the: scicv_Init(); at the beginning of the code. I wrote the code at win10, but I doubt that this has an influence. Good luck, Philipp A

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

2019-06-07 Thread Jean-Philippe Grivet
Hello Philipp, Thank you for your program, it looks like it would do exactly what I wanted. However (as I should have stressed before) I work under win7. In this environment, the only image processing toolbox is IPCV in which several functions are lacking, namely     scicv_Init(); matplot();

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

2019-06-06 Thread P M
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 Mot

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

2019-06-05 Thread Stéphane Mottelet
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. Besid

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

2019-06-05 Thread Jean-Philippe Grivet
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. 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 figur

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

2019-06-03 Thread Stéphane Mottelet
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 à

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

2019-06-03 Thread Jean-Philippe Grivet
My thanks to all respondants. The figure is in internal Scilab firmat made up of polylines., the border is a polygon. 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 picu

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

2019-06-03 Thread Dang Ngoc Chan, Christophe
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?