Go to Post yes, duct tape solves everything - Ted Boucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-01-2012, 19:46
pureFloat pureFloat is offline
Registered User
AKA: Moby
FRC #3506 (Yeti)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Charlotte, NC
Posts: 13
pureFloat is an unknown quantity at this point
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!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2012, 20:33
theprgramerdude theprgramerdude is offline
WPI Freshman
AKA: Alex
FRC #2503 (Warrior Robotics)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Brainerd, Minnesota
Posts: 347
theprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud oftheprgramerdude has much to be proud of
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.
__________________
Attending: MN Duluth Regional

Last edited by theprgramerdude : 20-01-2012 at 20:36.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2012, 01:31
pureFloat pureFloat is offline
Registered User
AKA: Moby
FRC #3506 (Yeti)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Charlotte, NC
Posts: 13
pureFloat is an unknown quantity at this point
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.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2012, 01:35
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
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.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-01-2012, 06:25
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
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
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
  #6   Spotlight this post!  
Unread 21-01-2012, 09:16
pureFloat pureFloat is offline
Registered User
AKA: Moby
FRC #3506 (Yeti)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Charlotte, NC
Posts: 13
pureFloat is an unknown quantity at this point
Re: Can someone explain BinaryImage?

Thanks, I'll be sure to read it as soon as you put it up.
Reply With Quote
  #7   Spotlight this post!  
Unread 21-01-2012, 09:19
pureFloat pureFloat is offline
Registered User
AKA: Moby
FRC #3506 (Yeti)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Charlotte, NC
Posts: 13
pureFloat is an unknown quantity at this point
Re: Can someone explain BinaryImage?

Quote:
Originally Posted by JewishDan18 View Post
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.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-01-2012, 15:52
BradAMiller BradAMiller is online now
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 590
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: Can someone explain BinaryImage?

Look for the camera test project under samples.

Brad
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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