Spot removal performance in preview window

Issue #286 resolved
Hombre created an issue

The spot removal tool actually triggers way too much tools in the pipeline, even with the tweak procparams. I replaced the ALLNORAW event by SPOTADJUST, and it’s way more responsive. See patch spot_event.patch attached, (with refreshmap_readability.patch if you don’t mind).

I also see that you commented out some tools that are time consuming (-> disabling time consuming and unnecessary tool). Would you mind if I enable this tweak by a new option in Preferences/Performance ?

Comments (21)

  1. agriggio repo owner

    Hi,

    thanks for the contribution! I tried it but it doesn’t seem to refresh correctly unfortunately. I tested by first enabling color/tone correction and then trying to add a couple of spots, if that helps.

    I also see that you commented out some tools that are time consuming (-> disabling time consuming and unnecessary tool). Would you mind if I enable this tweak by a new option in Preferences/Performance ?

    I’m not sure I understand this, can you elaborate?

  2. agriggio repo owner

    sorry, I was wrong. It’s not color correction, it’s haze removal. Here’s a video showing what I mean: https://drive.google.com/file/d/15m_LNjfCb9iDU217w2A21dFjF6ZN-DpL/view?usp=share_link

    I’m speaking about uncommenting everything below this line if the new option is checked in Preferences.

    Honestly I don’t remember why they are commented out – perhaps there was something not working properly (but I’m not sure to be honest). I am against specifying this in preferences though, but if uncommenting the lines does not produce strange side effects, I think the patch can be considered.

  3. Hombre reporter

    Sorry for the comment with patch n°2, I left the default code that was inside the Join box… A bug from Bitbucket ?

    spot_event2.patch fix the problem of the Dehaze and Dynamic Range Compression tool, which are involved in the preview update. Using ALLNORAWin EvSpotEnabled seem to suffice. spot_event3.patch does that too but also disable most of the tools, to speed up on preview update even more.

    I tested the later one for 5mn (that’s not much, I know), no problem seen so far. If you still see some quirks, using ALLNORAWin EvSpotEnabledOPAshould probably fix it. But again, no problem seen here.

    I noticed a bug of the Spot tool when Denoise is Enabled (the pasted image is not denoised), I’ll open an issue later.

  4. agriggio repo owner

    Thanks! I’ve applied version 4. Now I remember why I commented out those lines: they change the preview too much, which I’m not sure is expected/desired. That’s why I’d like to keep the behaviour as it is, on a second thought.

  5. Hombre reporter

    Still no possibility to add it as a Performance option (disabled by default) ? I agree that removing spots would come early in the editing process, but it would be quite useful when copy/pasting a profile and change all the spot positions in the new image.

  6. Hombre reporter

    I've thought about a handy integration of this speedup feature through a dedicated button in the Spot tool directly, disabled by default. That way, users are one click away to preview the whole thing at any time.

    Just tell me if it's okay for you or if you prefer this option in Preferences.

  7. Hombre reporter

    Actually it’s not saved, and I didn’t planed to save it. There’s a comment somewhere that indicate we could store its last state across session in Options (not done yet), but that’s all.

  8. agriggio repo owner

    @Hombre sorry, indeed I missed it! I was reading via email and didn’t notice… I’ll check it out asap, thanks!

  9. Log in to comment