Go to Post There is nothing that compares to the smell of burning flesh, especially when it is your own. - Al Skierkiewicz [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 14-02-2015, 15:25
connor_shaffer connor_shaffer is offline
Registered User
FRC #2849 (Ursa Major)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Maryland
Posts: 3
connor_shaffer is an unknown quantity at this point
OpenCV Troubles

I am currently working on vision tracking for my team, and while I have been very successful, I ran into a recent roadblock. Unfortunately, when writing files to the roborio to view them, I have had the following images show up, and they appear to be a combination of the images I have used across the various stages in my vision program. Does anyone know how I could fix this? And fyi, it isn't consistent in whether or not it will have interference.
Attached Thumbnails
Click image for larger version

Name:	filledContours2.png
Views:	32
Size:	29.2 KB
ID:	18350  Click image for larger version

Name:	filledContours.png
Views:	21
Size:	13.6 KB
ID:	18351  
Reply With Quote
  #2   Spotlight this post!  
Unread 16-02-2015, 11:27
connor_shaffer connor_shaffer is offline
Registered User
FRC #2849 (Ursa Major)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: Maryland
Posts: 3
connor_shaffer is an unknown quantity at this point
Re: OpenCV Troubles

So I found a solution in case anyone else runs into this problem, I had to initialize my Mat in such a way as to set the starting value of each pixel, using the constructor Mat(int rows, int cols, int type, Scalar newVal)
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:25.

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