Rank: 496 based on 180 downloads (last 30 days) and 2 files submitted
photo

Tim Holy

E-mail
Company/University
Washington University in St. Louis

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Tim View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Jan 2013 Save MAT files more quickly Saves large numeric arrays more quickly than Matlab's built-in save command Author: Tim Holy file operations, save, load, mat file, hdf5, performance 18 0
07 Feb 2011 Screenshot Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy color, legend, colormap, colororder, distinguishable, distinct 162 19
  • 5.0
5.0 | 17 ratings
Comments and Ratings by Tim View all
Updated File Comments Rating
28 Apr 2011 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy

@Robert Daly: sorry I didn't see your question earlier. It's an interesting application.

I'm no expert at these matters, but I imagine you could convert to LMS color space and then set one or more of the components to zero. You'd probably then want to convert back to Lab to judge perceptual distinguishability.
http://en.wikipedia.org/wiki/LMS_color_space

Alternatively (and perhaps more guaranteed to be accurate), you could use this lookup table:
http://perso.telecom-paristech.fr/~brettel/colourmaps.html
and then convert the modified RGB values to Lab.

If you implement this, I'd be curious to see what the final result looks like.

14 Dec 2010 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy

Thanks for the feedback and suggestions, everyone. Perhaps even more important than the issue of depending on the Image Processing Toolbox, you helped me realize that there's no particular reason to restrict this to Lab colorspace; one can easily envision scenarios where the user would like to be able to have some control over what is considered "perceptually similar." So I have uploaded a new version that allows the user to supply his/her own function that converts RGB colors into whatever space "similarity" is to be judged in. Of course, one effect is that this will allow you to use the "colorspace" function.

15 Jul 2010 Priority Queue (MEX/C++) An efficient priority queue implementation in C++ Author: Andrea Tagliasacchi

Very nice work. Thanks for sharing this useful code!

I found one small bug: pop does not clear the backIdx, so if you put an index on the heap, pop it off, and then try to put the same index on again with a new (lower) value, you will get an error, even though that index was no longer on the heap.

You can fix this by adding the following lines right after the test to see if the heap is empty:

// Clear the backIdx associated with the element we
// are about to remove
if (useBackIdx)
backIdx[heap[0].second] = -1;

Comments and Ratings on Tim's Files View all
Updated File Comment by Comments Rating
23 Apr 2013 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy Greene, Chad

Very cool idea! One cautionary comment: I'm one of the 5 to 10% of scientists who is mildly colorblind, and I cannot distinguish between colors 3 and 6 in the distinguishable_colors image shown above.

28 Mar 2013 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy Day, Melissa

Thanks for this! And thanks to the below commenter who suggested replacing the ~ on line 115.

28 Feb 2013 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy Shimoni, Raz

I love this function! Thank you.

16 Dec 2012 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy Soria, Manel

Well done !

10 Jun 2012 Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy Jonas

Top Tags Applied by Tim
color, colororder, distinct, distinguishable, file operations
Files Tagged by Tim View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
04 Jan 2013 Save MAT files more quickly Saves large numeric arrays more quickly than Matlab's built-in save command Author: Tim Holy file operations, save, load, mat file, hdf5, performance 18 0
07 Feb 2011 Screenshot Generate maximally perceptually-distinct colors Choose a set of n colors that can be readily distinguished from each other Author: Tim Holy color, legend, colormap, colororder, distinguishable, distinct 162 19
  • 5.0
5.0 | 17 ratings

Contact us