IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3  
Reply to this topicStart new topic
Beginner level projection
Brian Swift
post Nov 26 2019, 10:33 AM
Post #31


Member
***

Group: Members
Posts: 101
Joined: 18-September 17
Member No.: 8250



QUOTE (adamg @ Nov 25 2019, 01:43 PM) *
Anyone have any good advice on scaling the RGB to give the closest to true color? I tried these two [0.487, 0.408, 0.172] [0.444, 0.341, 0.155] from Brian's flow and I get a strong orange hue.

My colorBalance values specify the upper end of the range of the input components, so you'd divide by them.
When rescaled, they are similar to Bjorn's.
1/colorBalance/Min[1/colorBalance] = {1., 1.193, 2.8378}
Go to the top of the page
 
+Quote Post
Brian Swift
post Nov 26 2019, 10:54 AM
Post #32


Member
***

Group: Members
Posts: 101
Joined: 18-September 17
Member No.: 8250



QUOTE (Bjorn Jonsson @ Nov 25 2019, 03:01 PM) *
I usually multiply by [1, 1.12, 2.3] after decompanding. I'm surprised that [1, 1, 0.95] seemed close - are you decompanding the images before applying these?

I've been wondering, is your natural color process more involved than a scaling?
And also how you derived your color balance values?

My current (too blue) values come from the median of my flat fields. Early on they came from the max values from an image of Europa.
Go to the top of the page
 
+Quote Post
adamg
post Nov 26 2019, 12:26 PM
Post #33


Newbie
*

Group: Members
Posts: 16
Joined: 31-October 19
Member No.: 8699



Sounds like I'm miles off for some reason. I used the RDR product assuming it had already been decompanded, I recall I have a range to 4kish so it has certainly been through something.
Go to the top of the page
 
+Quote Post
fredk
post Nov 26 2019, 02:48 PM
Post #34


Senior Member
****

Group: Members
Posts: 3953
Joined: 17-January 05
Member No.: 152



QUOTE (Brian Swift @ Nov 26 2019, 11:54 AM) *
I've been wondering, is your natural color process more involved than a scaling?
And also how you derived your color balance values?

In particular, shouldn't a colour space matrix transformation to, eg, sRGB be performed from the raw colour channels? That generally can't be approximated by a simple scaling of each channel.
Go to the top of the page
 
+Quote Post
adamg
post Nov 26 2019, 06:14 PM
Post #35


Newbie
*

Group: Members
Posts: 16
Joined: 31-October 19
Member No.: 8699



The RDR data set says "For planetary targets, these values are then scaled such that a white surface at the solar distance at the time of imaging and with the commanded exposure time would have a pixel value of 10,000 data numbers.", so I'm assuming the blue already got scaled before I got to it. I probably ought to use the EDR data set if I want to actually know how it got scaled.

Regarding sRGB, it seems sensible to me that you can scale the linear raw IMG which is what I'm doing but should I be trasforming to sRGB at some point?
Go to the top of the page
 
+Quote Post
mcaplinger
post Nov 26 2019, 09:44 PM
Post #36


Senior Member
****

Group: Members
Posts: 1901
Joined: 13-September 05
Member No.: 497



QUOTE (adamg @ Nov 26 2019, 10:14 AM) *
The RDR data set says "For planetary targets, these values are then scaled such that a white surface at the solar distance at the time of imaging and with the commanded exposure time would have a pixel value of 10,000 data numbers."

Well, I wrote that, and I don't know how to make it any clearer than that.

"Natural color" requires you to model the human eye response. The Junocam RGB filters are not much like the human eye response (unlike the Bayer pattern used for MSL) so one would have to do something, but I'm not sure what.

In case you care, the EDR-RDR scaling code (after decompanding) is

CODE

ref = [111, 4766, 10331, 12669] # ch4, blue, green, red
scale = 16.3
sunrange /= 1.5e8 # km to AU
ex = float(i.info["exposure"])*int(i.info["tdi"])

dnout = int(dn*scale/ex/(ref[f]*(5.2)**2/sunrange**2)*10000)


--------------------
Disclaimer: This post is based on public information only. Any opinions are my own.
Go to the top of the page
 
+Quote Post
Brian Swift
post Nov 27 2019, 04:47 AM
Post #37


Member
***

Group: Members
Posts: 101
Joined: 18-September 17
Member No.: 8250



QUOTE (adamg @ Nov 26 2019, 10:14 AM) *
Regarding sRGB, it seems sensible to me that you can scale the linear raw IMG which is what I'm doing but should I be trasforming to sRGB at some point?

My colorBalance scaling is applied to decompanded raw non-calibrated image values. I usually use the "raw" files from the missionjuno.swri.edu, but
have also used PDS EDR files. I haven't worked with the RDR files.

I don't apply a linear to sRGB conversion unless I want to produce a natural-ish contrast image. Not performing the linear to sRGB makes the files from my pipeline display with more contrast.
Go to the top of the page
 
+Quote Post
adamg
post Nov 27 2019, 11:30 AM
Post #38


Newbie
*

Group: Members
Posts: 16
Joined: 31-October 19
Member No.: 8699



Interesting, [1,1.23,2.66] I actually dropped my 0.95 so I think you nailed it.

mcaplinger, sorry I didn't spot your name on the technical report, that was pretty lazy of me! Congratulations on such a successful piece of hardware, as an electronics guy it's the camera itself that's got me interested, I've been very impressed.
Go to the top of the page
 
+Quote Post
Brian Swift
post Nov 27 2019, 06:59 PM
Post #39


Member
***

Group: Members
Posts: 101
Joined: 18-September 17
Member No.: 8250



QUOTE (adamg @ Nov 27 2019, 03:30 AM) *
...as an electronics guy it's the camera itself that's got me interested, I've been very impressed.

Mike will correct me if I'm wrong, but I believe this is the hardware info for the CCD https://www.onsemi.com/pub/Collateral/KAI-2020-D.PDF

This and various other JunoCam reference links are at the top of the Juno24u notebook on GitHub.
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3
Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 8th December 2019 - 01:28 AM
RULES AND GUIDELINES
Please read the Forum Rules and Guidelines before posting.

IMAGE COPYRIGHT
Images posted on UnmannedSpaceflight.com may be copyrighted. Do not reproduce without permission. Read here for further information on space images and copyright.

OPINIONS AND MODERATION
Opinions expressed on UnmannedSpaceflight.com are those of the individual posters and do not necessarily reflect the opinions of UnmannedSpaceflight.com or The Planetary Society. The all-volunteer UnmannedSpaceflight.com moderation team is wholly independent of The Planetary Society. The Planetary Society has no influence over decisions made by the UnmannedSpaceflight.com moderators.
SUPPORT THE FORUM
Unmannedspaceflight.com is a project of the Planetary Society and is funded by donations from visitors and members. Help keep this forum up and running by contributing here.