RoboRealm Forum
http://www.RoboRealm.com/
The newest forum threads.Tue, 30 Nov 1999 00:11:00 ESTen-usCopyright: (C) RoboRealm, http://www.RoboRealm.com/http://www.RoboRealm.com/No Title
1. The COG_X accumulates a value after each pixel is processed. If you are not familiar with programming languages that would explain why this formula looks strange. Its a common paradigm in programming to add to an existing value. It should be initialized to zero.<br><br>2. COG_X is the accumulating center of gravity value and x is the x coordinate of the current pixel. For a 640x480 image, this x value would range from 0 to 639 for each rown.<br><br>3. I = intensity. A pixel has 3 channels (basic image array) which when averaged can be thought of as intensity of the pixel. R = red, G = green, B = blue values of a particular pixel. If that still doesn't make sense, read up on how images are represented in terms of color values.<br><br>4. Total is the total intensity of the entire image.<br><br>5. Again, check basic programming paradigms. Its not 100 = 100 / Total but that 100 / Total is then placed back into the COG_X variable.<br><br>Please just use google to find references .. there a millions of pages related to basic programming and image representation.<br><br>STeven.
http://www.roborealm.com/forum/index.php?thread_id=5982
http://www.roborealm.com/forum/index.php?thread_id=5982Tue, 30 Nov 1999 00:11:00 ESTNo Title
Regarding the formula for Center of gravity, can you help me in understanding this equation.<br><br>COG_X = COG_X + (I*x), <br>1.is there any differences between COG_X before = and after =.<br>2. What is differences between COG_X and x,<br>3. I = (R+G+B)/3, what is the meaning of I? and where can we get the value of R, G and B.?<br>4. Total = Total + I, what is Total, is it the total number of the pixel?<br>5. And lastly for COG_X = COG_X/ Total, if the COG_X = 100, thus it means that 100 = 100/ Total?<br><br>Hopefully you can help me understanding this formula. is there any suggestion of references that I should read. <br><br>Thank you
http://www.roborealm.com/forum/index.php?thread_id=5982
http://www.roborealm.com/forum/index.php?thread_id=5982Tue, 30 Nov 1999 00:11:00 ESTNo Title
Firdaus,<br><br>There isn't anything more to explain. That's the formula! Perhaps you can ask what part of the formula you don't understand and we can elaborate. Perhaps you don't understand the R, G, B parts? Those are the 3 RGB colors of a particular pixel. One could skip the I calculation and just use the Green channel of the pixel.<br><br>Plus, there are mountains of information available via a web search. If something isn't clear try searching for that on other sites that might present the information a bit differently and in a way that makes more sense to you.<br><br>STeven.
http://www.roborealm.com/forum/index.php?thread_id=5982
http://www.roborealm.com/forum/index.php?thread_id=5982Tue, 30 Nov 1999 00:11:00 ESTCenter of gravity
Currently i'm studying the movement of the fish by using roborealm software. One of the parameter that i used in this study is center of grtavity to determine the fish position. One thing that i don't understand is the formula used in generating the center of gravity.<br>Here are the formula given from roborealm webpage,<br><br>Center of Gravity<br>The Center of Gravity or Center of Mass statistic calculates where the COG of the image lies.<br>The COG is calculated by:<br><br>COG_X = COG_X + (I*x)<br><br>COG_Y = COG_Y + (I*y)<br><br>Total = Total + I<br><br>for each pixel where I = (R+G+B)/3 and x,y is the current pixel location. The resulting COG is then divided by the Total value:<br><br>COG_X = COG_X/Total<br><br>COG_Y = COG_Y/Total<br><br>to result in the final x,y location of the COG<br><br>Based on the formula given from the roborealm webpage, can you explain a bit more on the formula used.<br><br>Thank you
http://www.roborealm.com/forum/index.php?thread_id=5982
http://www.roborealm.com/forum/index.php?thread_id=5982Tue, 30 Nov 1999 00:11:00 EST