VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. For example there is a line-filter for Vapoursynth in Hybrid called Darken GLSL A4k where you can use to darken lines. In theory shouldn't it be possible to de-darken with the same filter with negative values ? But it does not work with this filter for me.

    So does someone know a de-darken filter?
    Last edited by Platos; 7th May 2023 at 16:08.
    Quote Quote  
  2. Originally Posted by Platos View Post
    For example there is a line-filter for Vapoursynth in Hybrid called Darken GLSL A4k where you can use to darken lines. In theory shouldn't it be possible to de-darken with the same filter with negative values ? But it does not work with this filter for me.

    So does someone know a de-darken filter?


    What do you mean it "does not work" ? In the GUI ?

    If it's an anime4k glsl shader, you can edit the values in notepad for any glsl shader, save it under a new descriptive name

    Negative values "work" for line darken shader strength , but they can blur the lines - it makes sense because line darkening filters also tend to darken and thicken the lines



    Another approach is to use a line mask, and composite a "lightened" version (such as with levels) using overlay
    Quote Quote  
  3. Yes, i meant the gui from hybrid.

    Ah ok, i thought it just would evenly make the line a bit less dark. But maybe i try it somehow.

    Ok, mask would also be an option. For masks i need 2 sources, right? Im not sure anymore.
    Quote Quote  
  4. Yes, Hybrid uses Anime4K_Darken_*.glsl, but Hybrid does only allow negative values, since - to me - that does not make sense for a darkening filter (https://imgsli.com/MTc2ODM5).
    Using Levels with an EdgeMask while changing the gamma, seems to a better approach.
    If you mess with the glsl file, make a copy of it and rename the copy, keep the original, otherwise Hybrids UI integration of the filter might not work.

    Cu Selur
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  5. Ah ok, yeah i mean if it looks so bad i will not try it xD

    That seems just not to work good.

    Maybe i have to try masking. I will have to look into this masking stuff. Is complicatet.
    Quote Quote  
  6. The basic idea of masking is easy, you have two versions of a clip, for exampled a filtered and an unfiltered one.
    Then you have a mask (either grayscale or black and white) which defines per pixel where and how much of the first version of the clip should be replaced by the second version.
    Original:

    Filtered:

    Mask:

    Filtered with Mask:


    If the pixel is white (=1) in the mask, then the pixel in the 1st source will be replaced with the pixel in the 2nd source.
    If the pixel is black (=6) in the mask, then the pixel in the 1st source will be kept.
    If the pixel is gray (0 < x < 1) in the mask, then the pixel in the 1st source will be mixed with the pixel in the 2nd source.


    Cu Selur

    Ps.: The tricky part is creating the right mask that covers only the areas you want.
    Last edited by Selur; 8th May 2023 at 09:35.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  
  7. Ahh, ok, that's nice.

    So which filter did you use for this masking ? negative value forDarken GLSL A4k ?
    Last edited by Platos; 8th May 2023 at 10:16.
    Quote Quote  
  8. Levels with gamma set to 1.5 and for the mask I used 'EdgeMask (Prewitt)'.
    users currently on my ignore list: deadrats, Stears555, marcorocchini
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!