Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Match altered image to its original
#11
Using the tiff files, I got quite a good color match using the elsamuko plugin. I did crop the 'letter boxing' top and bottom though.
The correction curve looks like this:

   

A comparison clip attached.  The tiffs are different from the other pngs. The ghosted tiff is less sharp and does not have those 'edge artifacts'  as in the png's.  I wonder what in your processing adds those. Sharpening maybe ?


Attached Files
.gz   corrected.xcf.gz (Size: 401.83 KB / Downloads: 91)
Reply
#12
(11-01-2021, 11:07 AM)Ofnuts Wrote: This is very odd. There are 32 regularly spaced (step=8) peaks in the output histogram (that are the same on all channels). IS the image quantized in the process? If so, forget it, no way you are going to get a proper image after compensation. That would be a bit like transforming a cow so that it eventually comes out alive from the meat grinder.

Odd, indeed.  I couldn't agree more.

You'll see in a moment that I've gone to some lengths to get this mystery to the next level, hopefully toward conclusion; spent the last few hours to gather a meaningful collection.

I'm delighted that you're hanging in here, Ofnuts.  Your assistance dates directly back to 2-20-21, in aiding my grokking of Color Mapping.  You provide – first, accuracy; then clarity; then simplification – in that order, which is how it should be.  So check this out:

I have not given a full account of the known associations with this ghosting.  I knew where lay the cause, but not the why.  For a considerable time, I dodged it; found workarounds; but always said, "Some day I'm gonna hafta' get this damn thing figured out.  So here goes.  I think this'll offer some insights as to possible quantization, even-ness of steps, and so on.

The culprit is Flash Player -associated imagery in PDFs.  So, you have all your regular arsenal of Adobe Acrobat.  I'll have to followup with you on some of my fairly robust productions.  But here's what I've long known – Any placement of Buttons, atop Flash content, brings about this ghosting, affecting the 'internal' Button imagery.  A few points:
  1. It occurs only in the regions where Button overlaps Flash.
  2. It is not evident; everything looks dandy in Buttonville, until the Flash content is 'activated' [which can occur from user interaction, or JavaScript engagement], which immediately initiates the ghost process.
  3. Following activation [in these instances the Flash material consists of video segments], the effect remains, even when the video stops.
  4. The effect is constant, 'even', and unvarying [thank God for that, anyway]
  5. When the content is 'disabled', the overlying button stuff returns to where it was [though, in practice, disabling never really has any reason to occur, so let's just call it 'perpetual' {until document close/reopen, of course; things always open in intended fashion}].
  6. It appears to matter not, the characteristics of the underlying Flash – that is to say, it appears to be in no way dependent on luminosity, contrast, color values, etc. of that video.
  7. Especially remarkably - it matters not a bit whether video is dynamic, or static – moving or still.  So it's not like there's a relation to processing load.
  8. In all my specimens sent this way, video is at a standstill.
  9. Intermediate Buttons, sandwiched atop the video, and beneath the uppermost Button/icon layer, appear to have no effect; i.e. it doesn't help to sandwich in a black button.
  10. Everywhere else in Acrobatville, a layer is a layer is layer.  Not here.  Flash imparts a spooky magnetic, remote, field over them buttons.
Cool, huh?

– – –

Quite a set of specimens have I sent up to the folder, "Flasher the Friendly Ghost".  It's likely more than you need to see, but I believe illustrates the phenomenon accurately.  The file names, especially if gobbled alphabetically, are essentially self-explanatory.

As for what to do about it, I'm not certain that it's beyond hope.  Even a close approximation would be beneficial.  I don't anticipate the need to 'splice'/merge/combine original with ghosted images, as a split-down-the-middle singularity [though that liberty would be grand to have in store].  More typical is that somewhere on the page, or an earlier page, or an upcoming page, there may be conceptual comparison.  I don't wish to impart cognitive discomfort.  To that end, though, sometimes close is good enough.

Ultimately, I can't get around there being a 'flick-of-the-switch' change, at the moment of content activation.  A processed, prepared-for-ghosting image, sitting in place atop Flash, is gonna change at that moment.  I have to live with that.  But I can mitigate, by causing activation when the user is not looking.  The objective is that the activated/prepared-for-ghosting image will then at least closely resemble its unprepared/not-sitting-atop-Flash counterpart, which may reside nearby.

– – –

What do call a cow with no legs?


A: Ground beef.

(11-01-2021, 11:51 AM)rich2005 Wrote: Using the tiff files, I got quite a good color match using the elsamuko plugin. I did crop the 'letter boxing' top and bottom though.
The correction curve looks like this:



A comparison clip attached.  The tiffs are different from the other pngs. The ghosted tiff is less sharp and does not have those 'edge artifacts'  as in the png's.  I wonder what in your processing adds those. Sharpening maybe ?

Cool, Rich.  Thanks.  I'ma check it out.

I will obtain the plugin.

Letterbox, schmetterbox.  Of course.  They have no place here.  That's an artifact of accurately generating the sample specimens, uniform in the region of interest.

Now, tiff, png.  My eventual use demands png, to gain transparency in Adobe Acrobat.  So that's the ultimate production format.  But I do all the Gimp processing from tiffs, when possible.  Unless there's a reason I oughtn't in this instance.  And also I assumed tiffs the way to go in swapping specimens.

You probably gathered that my original original is a jpeg [1500 x 1004].  It's up in the Upload Repository.  Tiff made directly from that.

– – –

Alright – I just looked.  Neat.  They're gonna love you in Amsterdam.

Here's the big-picture question.  As to "what in your processing adds those", That's the whole quandary.  It is not my processing.  It's Adobe's.

Check my latest post here.  I'm really looking beyond an individual instance, and trying to engineer a generalized fix, if there turns out to be a predictable offset/remedy.
Reply
#13
To quote Wikipedia:

The Flash Player was deprecated in 2017 and officially discontinued at the end of 2020 for all users outside China, as well as non-enterprise users, with many web browsers and operating systems scheduled to remove the Flash Player software around the same time.
Reply
#14
(11-03-2021, 12:29 AM)Ofnuts Wrote: To quote Wikipedia:

The Flash Player was deprecated in 2017 and officially discontinued at the end of 2020 for all users outside China, as well as non-enterprise users, with many web browsers and operating systems scheduled to remove the Flash Player software around the same time.

Jeesh, Ofnuts – This is unexpected.  If I might speak frankly, I find it considerably off-topic, as I am addressing a forum on Image Manipulation, not Business Manipulation.  Wikipedia would more correctly state that Adobe has transferred ongoing full support for Flash Player to Harman International [where I have made contacts], as done routinely with other Adobe products, and it remains readily available to 20% of the world's population.

Yes, I have been working since 2017 to find comparable alternatives.  There are none, known to me.  My interest has naught to do with Web presentation, as my prospective enterprise client, the University of Amsterdam Medical Center, requires positioning of visual elements with the precision of 3.6 microns, routinely available in the ISO 32000 standard [aka PDF].  For now, our prototyping continues uninterrupted, until Adobe releases equivalent support for, and logical coordination with, native media players.  This production is solely for a standalone environment.  None of our numerous operating systems have had Flash Player removed [my specimens are from OS X 10.7.5 - macOS 10.15.7], nor does any entity have the authority, nor the capacity, to so do.

Back to the nature of this Forum.  I feel as if I presented a dilemma attempting to match two images taken at my granddaughter's wedding.  One was taken with a Leica M3, and the other, precisely synchronized via photography strobe-light, a Polaroid SX-70.  And the answer comes back – "We can't help you.  Both of those camera models were deprecated."

Harman International's reply has been, "Flash Player is working as specified.  We'd suggest you try a Photoshop Forum to match the images as required."  Regarding the behavior of Acrobat [you'll see below that it distinctly extends beyond Flash Player], Adobe's reply is the same.  I would prefer an open-source solution, as would Amsterdam.

– – –

Let me re-phrase my topic in the context of a non-deprecated business product utilized worldwide by medical researchers, scientists, engineers, law courts, and tax authorities.  You might cheer up to find that I'm not wallowing in naïveté.  And I believe you are wham-slam, right on the cusp of fixing what's going on here.  To wit, your observations questioning "32 regularly spaced (step=8) peaks in the output histogram (that are the same on all channels). IS the image quantized in the process?"  

Consider this the topic:

I have some images which become altered by a process unknown to me, over which I have no control.  It stems from 3D Models in ISO 32000 documents, as rendered by Adobe Acrobat.  When I place a Button Icon atop the model, the icon image is altered, but only in the region overlapping the model.

See the Upload Repository for the folder Adobe Acrobat 3D Models the Friendly Ghost, where you will find files pertaining to those here attached, including .xcf.


Attached Files Thumbnail(s)
           
Reply
#15
Quote:Back to the nature of this Forum.  I feel as if I presented a dilemma attempting to match two images taken at my granddaughter's wedding.  One was taken with a Leica M3, and the other, precisely synchronized via photography strobe-light, a Polaroid SX-70.  And the answer comes back – "We can't help you.  Both of those camera models were deprecated."

No, the analogy is more like you are trying to match up two pictures to create a slide when no one makes slide projectors anymore and even replacement bulbs all come from an abandoned warehouse in Pripyat.

Now, back to the problem t hand. The peaks that appear in the histogram can have only one explanation: several input colors are mapped to the same output color in a much larger scale than what you get when doing some usual color editing. And since there are no gaps in the histogram this also mean that this happens only for some of the pixels and others are unscathed. So figuring out which is which to find an appropriate transform to pre-compensate is going to be an uphill battle. On the other hand, since
Quote:Harman International's reply has been, "Flash Player is working as specified"

then there are specs, and what do they say?
Reply
#16
(11-03-2021, 09:28 PM)Ofnuts Wrote:
Quote:Back to the nature of this Forum.  I feel as if I presented a dilemma attempting to match two images taken at my granddaughter's wedding.  One was taken with a Leica M3, and the other, precisely synchronized via photography strobe-light, a Polaroid SX-70.  And the answer comes back – "We can't help you.  Both of those camera models were deprecated."

No, the analogy is more like you are trying to match up two pictures to create a slide when no one makes slide projectors anymore and even replacement bulbs all come from an abandoned warehouse in Pripyat.

Now, back to the problem t hand. The peaks that appear in the histogram can have only one explanation: several input colors are mapped to the same output color in a much larger scale than what you get when doing some usual color editing. And since there are no gaps in the histogram this also mean that this happens only for some of the pixels and others are unscathed. So figuring out which is which to find an appropriate transform to pre-compensate is going to be an uphill battle. On the other hand, since
Quote:Harman International's reply has been, "Flash Player is working as specified"

then there are specs, and what do they say?


They say, "We specs are the very definition of proprietary/trade-secret mechanisms."  So even though ISO 32000 is an 'open standard' [i.e it's specs are available, free of royalty payment {in contrast with the bulk of ISO standards, for which one must pay to replicate/practice/distribute said standard}], it also accommodates proprietary customization, for add-ons, extensions, plugins, and such.  Adobe Acrobat aptly demonstrates this with Flash Player.

To quote Wikipedia:

the completeness of its public specifications are debated, and no complete implementation of Flash is publicly available in source code form with a license that permits reuse. 

That's what Harman is referring to when they say, "as specified".  You can appreciate that Adobe finds benefit in not disclosing the specs, since they rely on them for current, ongoing competitive product development.  Following the Great Flash Security Scare of 2016, Adobe suffered losses from people fleeing Adobe Flash Professional.  It's a credit to their marketing prowess that they regained those lost customers flocking back, simply by changing the name to Adobe Animate, with essentially no change to the underlying Flash Professional code.

I hope that my reliance on Flash is not out of ignorance, should you or others have suggestions for comparable alternatives.  I'll forgo a detailed account of requirements in this thread.  In general, Web presentation is ruled out due to unsophistication of imagery [e.g. spatial imprecision, low resolution, limited use of transparency, clumsy scaling], device dependence, limited audience reach, connection vulnerabilities, and security weaknesses, but, above all, temporal coordination [intrinsic flaw of all networks], precisely predictable layout and formatting, and re-use, revision, markup, editing, and redistribution, from an initial recipient to subsequently another.  And, critically –– at no, or low, cost.

You are spot-on in identifying the need for "an appropriate transform to pre-compensate".  But let's set aside, for now, a generalized engineering remedy, for all cases.  I would welcome your guidance, particularly as to a conceptual strategy, on how to approach, how to think about, how to go about, where to observe, which buttons to push – you are eminently adept in all those regards – in undertaking a "best shot approximation" for one image pair.

– – –

Back to the wedding photographs.  My granddaughter got married on the stage at the Concertgebouw in Amsterdam (so you've seen the starting pair).  Should I be adjusting RGB Color Curves, only?  Or better off evaluating HCL, HLS?  Brightness and Contrast seem straightforward.

Pointers to Forum threads, tutorials, or related whatnot, would equally be most welcome.

With appreciation,
BR
Reply
#17
Then I have nothing better to suggest than what I have already said.
Reply
#18
Quote:Back to the wedding photographs. My granddaughter got married on the stage at the Concertgebouw in Amsterdam (so you've seen the starting pair). Should I be adjusting RGB Color Curves, only? Or better off evaluating HCL, HLS? Brightness and Contrast seem straightforward.

Have a look at using 'Luminosity Masks' https://patdavid.net/2013/11/getting-aro...ity-masks/ that describes the process in detail, however there are plugins that make them for you.

The other PDF / shockwave stuff, just my opinion but I cannot see the relevance to Gimp. Maybe this https://creativepro.com/how-to-get-anima...ing-title/
Reply
#19
I was looking for answers to another question (Luminosity Match), and ended up bumping into Rob A's Histogram_Match.scm script.

I just did a few tests with this script (it's been a few minutes since I downloaded it) and I don't really know how to use it correctly yet, but the results seemed acceptable to me for the Hall Original and Hall Ghost images.

What do you think? A viable option?

http://www.silent9.com/blog/archives/162...Match.html
                               .....
Samj PortableGimp 2.10.28 - Win-10 /64.
Reply


Forum Jump: