Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Can someone explain BinaryImage? (http://www.chiefdelphi.com/forums/showthread.php?t=100742)

pureFloat 20-01-2012 19:46

Can someone explain BinaryImage?
 
I've been looking at a lot of threads having to do with tracking the hoops, and most of them involve converting the camera's image to a BinaryImage type. What exactly is this? Does it make all bright colors trues and all dark colors false? Also, can someone please explain what a ParticleAnalysisReport object does? That seems to be what the majority of the methods for BinaryImage return. I've read through this, but I can't understand everything for the above reasons.

Thank you for any help!

theprgramerdude 20-01-2012 20:33

Re: Can someone explain BinaryImage?
 
A binary image is the result of an image filter applied to one of many types.

Just like a regular image represents a large array of pixels representing the colors seen by the camera, a binary image is also an array of pixels; however, for the binary image, instead of color, each pixel holds only a single true/false value.

For example, lets say you had a picture, and you ran a filter on it that returned true for all pixels that had a blue value of >150, and false for everything else. The binary image that would be produced would have each pixel be false for those with blue content of less than 150, and vice versa for the others.

The ParticleAnalysisReport object represents the results of an analysis of particles. For binary images, particle analysis involves finding groups of "true" pixels close together, and treating them as observed particles. The methods operating on binary images let you find and analyze particles to your liking.

For this years game, the particle analysis report could provide information on where blackboards, the possibly largest particles found due to the retroreflective tape, if the filter providing the binary image is tuned, are.

pureFloat 21-01-2012 01:31

Re: Can someone explain BinaryImage?
 
Thank you so much. That cleared things up a lot and I understand the basics of it now. Do you know of anywhere I could go to see an example of this? I couldn't find sample code in Netbeans.

JewishDan18 21-01-2012 01:35

Re: Can someone explain BinaryImage?
 
Sample code just for Labview, I believe. There is an example for last year that will show you, but I do not know where it is.

BradAMiller 21-01-2012 06:25

I'm posting an update later today that includes additional vision operations in Java along with a sample program, and sample images that demonstrates finding 2012 targets. You can use it as a starting point.

Brad

pureFloat 21-01-2012 09:16

Re: Can someone explain BinaryImage?
 
Thanks, I'll be sure to read it as soon as you put it up.

pureFloat 21-01-2012 09:19

Re: Can someone explain BinaryImage?
 
Quote:

Originally Posted by JewishDan18 (Post 1110291)
Sample code just for Labview, I believe. There is an example for last year that will show you, but I do not know where it is.

There is sample code in Java. When you open a new project, you can go to Samples>FRC Java, and it has several sample programs, including things like tank drive with the Kinect. However, the closest I could find to tracking the hoops was a sample Lunacy tracker.

BradAMiller 21-01-2012 15:52

Re: Can someone explain BinaryImage?
 
Look for the camera test project under samples.

Brad


All times are GMT -5. The time now is 22:21.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi