New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Max gamut #180
Max gamut #180
Conversation
Related #66 — would be awesome. |
Currently stuck at: |
This looks awesome. Yeah the |
a914785
to
e4dc01d
Compare
This is super cool. Couple of quick Q's while I'm playing around:
EDIT: Right, I see 687f18c, ignore (2) |
No, you're right, points should not fall outside. It's likely a bug. Could you share the code you used to produce these graphs please? On a related note, the first graph is strange because the max gamut should always be convex and it's not the case here. |
Lazy code:
|
Random thought while trying to debug this: should we provide a method for |
Issue: conversion to relative qcatches when all qcatches are zero (e.g. CIE between 300 and 390 nm) creates |
This is looking awesome. Couple of quick things: (1) Uninformative error atm when trying to use transformed qcatches
(2) Not sure what your thoughts are, but if it'll be a while before before we solve/implement it with transformed qcatches it's probably worth mentioning that in the docs ( (3) For tetrachromats, the volume when plotted looks like it's basically ~100%. Is that right? My intuition might just be mis-calibrated, but I would've thought the effect of the minor overlaps in sensitivity should be larger. (Maybe not though, one of the benefits of tetrachromacy...).
|
All very good points:
The only case where it's impossible to excite only one receptor is for Let's try again with vis.flowers <- vismodel(flowers, sensmodel(c(350, 450, 550, 650)))
tcs.flowers <- colspace(vis.flowers)
summary(tcs.flowers)
plot(tcs.flowers, gamut = TRUE) |
Cool - all looks good to go from my perspective then. Guess my intuition was just off re: birds, but it makes sense. Benefits of a finely tuned tetrachromat! |
fix #66
This is something that I have been wanting to do for a long time and that I now have to do for a manuscipt in revision: I need to compute the maximum theoretical gamut given a visual system and illuminant.
This is a first pass at trying to do this but I'm not entirely sure it's the best way. I also really need to refactorize
dispace()
/trispace()
/tcspace()
at some point (plus address #102 and #179 while I'm at it) but I don't know if I will manage to do it in this PR.An example of what it produces with
triplot()
: