Jump to content

Controlling for different lighting in two medical images of the same subject


Recommended Posts

Does anyone have suggestions on how to use existing PainNet program or plugin features to solve the following problem?

Sometimes in publishing of medical research, we need to show the changes in a patient's appearance over time. Inevitably, the two photos will be in different lighting. For example, the current photo may be in the flourescent light of a hospital while the older photo may be in the incandescent light of a patient's home.

I have tried a method to identify the darkest pixel in a feature common to both pictures (for example, eyebrows) with the following results:

New photo: R:48 G:34 B:30

Old photo: R:45 G:43 B:40

So, how should I adjust the old photo? Simply add either the relative or absolute difference between the channels above to the entire photo? Is there a plugin that supports this? I looked at ColorMatch and ScriptLab, but did not see a solution.

Thanks

Link to comment
Share on other sites

Wrong section to post this in (shoulda gone in general discussion)

Anyhow, there are a few things you could try:

1. whitepoint correction

2. color balance

3. curves+ http://forums.getpaint.net/index.php?/topic/7291-

No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait

Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo

Link to comment
Share on other sites

I think I know what you are describing, but I'm not sure if the darkest common is really where you would focus. Skin tone is more likely to change from a source light difference. Could you post some samples (clipped even to avoid issues of propriety and idenity of course) to better "see" what you are running into?

The stated example is pretty common correction for image blending, but the direction of the source light and a ton of other things will affect how much of a change to the primary subject is happening. Whitebalance, cross-processing and few others might help, but it depends on how much color difference there is. At least for me, fluorescent hues and incandescent hues tend to vary too much for there to be "one method" really.

Not trying to nitpick it to death either or be dismissive. Examples would help though to probably get more engagement as well.

***

Gallery at PDN-Fans

Link to comment
Share on other sites

Thanks for the ideas. Due to privacy issues, I cannot put the complete photos in public. However, a link to extracts of the photos and my initial, primitive test with color balances and brightness is at:

http://sumsearch.org/photos.shtml

The values for the darkest pixel of the eyebrow are:

  • Before photo: 43 30 21
  • Current photo: 48 43 43
  • Before photo with adjustments to balance and brightness: 47 40 41

Thanks

I think I know what you are describing, but I'm not sure if the darkest common is really where you would focus. Skin tone is more likely to change from a source light difference. Could you post some samples (clipped even to avoid issues of propriety and idenity of course) to better "see" what you are running into?

The stated example is pretty common correction for image blending, but the direction of the source light and a ton of other things will affect how much of a change to the primary subject is happening. Whitebalance, cross-processing and few others might help, but it depends on how much color difference there is. At least for me, fluorescent hues and incandescent hues tend to vary too much for there to be "one method" really.

Not trying to nitpick it to death either or be dismissive. Examples would help though to probably get more engagement as well.

Link to comment
Share on other sites

The examples I used are at http://sumsearch.org/photos.shtml . The photos are only a segment of the face to protect the patient's privacy. In addition, the server with the photos is having some trouble and at times the page is not display today. Any help is appreciated. Thanks.

Not trying to nitpick it to death either or be dismissive. Examples would help though to probably get more engagement as well. g.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...