Go to Post Students dream up the ideas for bots, it is than up to the mentors and engineers to make these dreams a reality. - dddriveman [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 16-08-2010, 16:34
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Dashboard Image modification

I'm trying to add vision to some code, to learn about how vision processing works. I was hoping to modify the image being output on the dashboard. I'm trying to use the Color threshold function, but I get this error:
Code:
Error -1074396154 occurred at IMAQ ColorThreshold
  The image is not large enough for the operation.
Here is a picture of the code.
Can anyone tell me what I'm doing wrong?
__________________

Reply With Quote
  #2   Spotlight this post!  
Unread 16-08-2010, 20:48
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Dashboard Image modification

The threshold should go on a binary image, not a grayscale image.
However, that error message does seem to be the reverse of what I'm suggesting.
The error is occurring on the "image threshold", correct?
If you're still having the error, try creating your algorithm with the NI Vision Assistant.
__________________
-- Marshal Horn
Reply With Quote
  #3   Spotlight this post!  
Unread 16-08-2010, 21:04
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Dashboard Image modification

Hmm, the help for the threshold says that the resulting image is a grayscale u8, Also, i have tried it in the NI Vision Assistant, thats where i started. And yes, the error occures at the threshold.
__________________

Reply With Quote
  #4   Spotlight this post!  
Unread 17-08-2010, 08:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Dashboard Image modification

I'm afraid I haven't seen that error before, so I don't have any suggestions. Go ahead and post the VI. I'd like to help get to the bottom of it.

Greg McKaskle
Reply With Quote
  #5   Spotlight this post!  
Unread 17-08-2010, 09:47
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Dashboard Image modification

Heres the Dashboard Main.vi, http://dl.dropbox.com/u/967235/Dashboard%20Main.vi

Or, if you want it, http://dl.dropbox.com/u/967235/dashboard10.zip theres the entire project
__________________

Reply With Quote
  #6   Spotlight this post!  
Unread 17-08-2010, 11:48
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Dashboard Image modification

Well, I know its stupid of me but.. the error occurs only when it isn't getting an image.. which makes a lot of sense.. Also, the result is only correct when it is a binary image. The Dashboard was failing to get the image.

So the function does seem to be outputting a binary image. So either i didn't read the documentation correctly or its just wrong.
Which leads me to my next question, How do i create a binary image?
__________________

Reply With Quote
  #7   Spotlight this post!  
Unread 17-08-2010, 18:03
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Dashboard Image modification

You can convert the image with a property node, or (I believe) there's an option when you create the image with the "Imaq New Image" vi. (It should be in that enum that currently says "grayscale u8)
__________________
-- Marshal Horn
Reply With Quote
  #8   Spotlight this post!  
Unread 17-08-2010, 20:10
Bot190's Avatar
Bot190 Bot190 is offline
Registered User
FRC #0166 (ChopShop)
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Merrimack NH
Posts: 105
Bot190 will become famous soon enough
Re: Dashboard Image modification

That enum doesn't have an option for grayscale, but by clicking on the image and changing the palette to grayscale, it shows up fine..
__________________

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Camera Image on Driver Station/Dashboard helenajoy NI LabVIEW 9 15-04-2010 10:21
no camera image in the dashboard Team_136 Control System 3 23-02-2010 18:49
absolute minimum for displaying image on dashboard kennypu C/C++ 17 14-02-2010 10:07
Displaying Camera Image in C# Dashboard PranavSathy C/C++ 12 08-02-2010 17:06
Reinstall of dashboard doesn't fix camera image streaming ellisk Programming 2 20-01-2010 08:04


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

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