Go to Post Edison was once asked "how do you come up so many good ideas?" to which he responded "for every good idea, I have 99 bad ideas first." - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 31-01-2012, 13:43
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Image Threshold Produces Black Image

If you're looking to change colorspace and see what happens, go back (or start using) NI Vision Assistant. After acquiring an image and beginning to process it, if you go to the "threshold" processing area in the 2nd tab, you can select "RGB", "HSL", "HSV" etc in a drop-down list and then play with the filtering min/max values. This will give you the ability to experiment and see what works best. Then use those values in your actual call in C/C++ once you're happy with it.

The white paper on target finding this year goes into HSL/HSV to a decent degree BTW.

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2012, 16:32
DjScribbles DjScribbles is offline
Programming Mentor
AKA: Joe S
FRC #2474 (Team Excel)
Team Role: Mentor
 
Join Date: Oct 2011
Rookie Year: 2012
Location: Niles MI
Posts: 284
DjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to beholdDjScribbles is a splendid one to behold
Re: Image Threshold Produces Black Image

The problem I encountered was occurring with the output from vision assistant, I switched to using the colorImage->threshold function after getting the black screen there. The vision assistant seems to perform some extra steps on the jpg you give it to put it into the proper color space, which doesn't get done in the generated c code.

Perhaps I need to close the loop on this whole fiasco, it maybe that it originally worked fine doing the conversion in the generated code, but combination of bad particle analysis decomposition and from writing my binary image as a jpeg caused it to look 'broken'.

But, throughout this, our vision assistant script has given us the expected result, while we were unable to get any results from the C++/c code (until switching color space).
Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2012, 19:51
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 157
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: Image Threshold Produces Black Image

So, if I read this right, you're on your way to health. Yes? If so, then we'll just close this out until there's something new or you get a rockin' great tracker!

bob
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
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 03:01.

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