View unanswered posts | View active topics It is currently 06 Apr 2020, 06:38

Reply to topic  [ 3 posts ] 
comparing two halves of an image 
Author Message

Joined: 15 Apr 2008, 22:27
Posts: 13
Reply with quote
hello forum,

I've seen the ImageSplit block, but I'm not able to figure out how to compare the two resulting images, to determinate which one has more white pixels than the other. I will explain:

- first, I will get an image, using a webcam and background simulation;
- second, I will apply a threshold filter, getting a black-and-white image;
- now, I need to now if the right half has more white than the left half.

I also gave a look at ImageToMatrix block, and the operations with matrix, but I couldn't find how to add all the members of a matrix. Using the result of this sum, I could easly determinate with half has more white pixels, I think.

thank you,

28 Apr 2008, 02:17

Joined: 22 Mar 2008, 16:09
Posts: 26
Reply with quote
In Eyesweb 3, you could convert the images to matrices and then use the Matrix>Binary Op>Logical block to determine which is whiter.

You could use 'deprecated blocks' to achieve this in the new version but I am sure there is a better way which I am unaware of.

If you have only pure black and pure white in your images maybe you could use the histogram actor and compare the relevant matrix indices?


28 Apr 2008, 15:04

Joined: 15 Apr 2008, 22:27
Posts: 13
Reply with quote
dear Gavin,

I think histogram block will be enough for me, thank you.


28 Apr 2008, 21:24
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.