output of cops statistics by id - meaning?

   96   1   0
User Avatar
Member
103 posts
Joined:
Offline
I'm trying to make use of the Copernicus node called "statisticsbyid", but am unsure how to interpret the output.
The resolution of my image plane is 1024x1024. I have an image with some separated islands and I have run that through a "segmentbyconnectivity" node to get the id output I need. If I read the area output of the statistics node I find that the smalles island I have has a value of 0.0002. But, if I count the pixels there are 53 pixels in that island. So, how do these numbers correlate? What is the node actually calculating? What does the value 0.0002 on a 1024*1024 pixels image actually mean?

Thanks,

Dag
User Avatar
Member
9252 posts
Joined: July 2007
Offline
it's likely area in the image space units

image space is -1.-1 to 1,1 which is 2x2 with area 4
total amount of pixels is 1024x1024 = 1,048,576
so single pixel area is 4 / 1,048,576 = 0.0000038147
therefore your 53 pixel island area is 53 * 0.0000038147 = 0.000202179

EDIT: so if you are interested in the amount of pixels in the island based on the area value from statistics you can go backwards and do
0.000202179 * 1024 * 1024 / 4 = 53
Edited by tamte - yesterday 19:18:48
Tomas Slancik
CG Supervisor
Framestore, NY
  • Quick Links