Go to Post Inaccurate data is not data. It's guessing. - George1902 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-05-2013, 09:35
tj1673's Avatar
tj1673 tj1673 is offline
Collegiate Mentor
AKA: Trevor D.
FRC #0048 (Delphi E.L.I.T.E.)
Team Role: Alumni
 
Join Date: Apr 2007
Rookie Year: 2006
Location: Warren, OH
Posts: 14
tj1673 is just really nicetj1673 is just really nicetj1673 is just really nicetj1673 is just really nice
HSV/HSL Algorithm

Hello all,

I've been thinking about it, and was wondering:

What are the time and space complexities of the HSV/HSL algorithm that runs the vision processing?

Since it's just a simple loop through a set number of pixels, does that mean it is O(n)?

And I figure it can't take too much space based on the fact that all of this is happening on the cRIO.
__________________
"You are not the battles you’ve lost. You are the war you fight. You are not that shadows that fall. You are a home for the light."
  #2   Spotlight this post!  
Unread 03-05-2013, 11:31
RyanCahoon's Avatar
RyanCahoon RyanCahoon is offline
Disassembling my prior presumptions
FRC #0766 (M-A Bears)
Team Role: Engineer
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Mountain View
Posts: 689
RyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond reputeRyanCahoon has a reputation beyond repute
Re: HSV/HSL Algorithm

I can't comment on how the NIVision functions are implemented, but theoretically, since colorspace conversion is a per-pixel operation, it should run in O(n) time and O(1) space (if you don't count input/output space - especially since it can be done in-place; O(n) space if you do count input/output buffers).
__________________
FRC 2046, 2007-2008, Student member
FRC 1708, 2009-2012, College mentor; 2013-2014, Mentor
FRC 766, 2015-, Mentor
  #3   Spotlight this post!  
Unread 03-05-2013, 21:10
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,751
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: HSV/HSL Algorithm

I implemented this a few years ago and used an algorithm from Foley and van Dam. I found it by googling, but don't remember exactly which site I found it at.

It is O(n) time and can be done either inplace or into another buffer of the same size.

The NIVision algorithms strive for accuracy and I don't believe they use the approximation algorithm I mention above. I was told that the HSV is faster but less accurate than the HSL, but I haven't verified this.

Greg McKaskle
Closed Thread


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:04.

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