Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
20th November 2009, 16:35 | #1 | Link |
Robert
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
|
Edgemask on top
Here I am again asking you gurus to share some knowledge.
My problem is easily explained. I want to put a mask edge back ONTOP of my denoised clip. Im sure this is old hat to you guys, but I do not want to damage edges via the denoising. I think I have a probable answer. clipedge=mt_edge() clipclean=TTempsmooth() Overlay (clipedge, clipclean, mode="blend", opacity=1) Although I get an image back im not so sure its what I wanted. I want the edge ontop of the denoised not merged. That is why I tried overlay. So question 1 is the above alright for this? Is there another alternate way to do this? thanks |
20th November 2009, 18:10 | #2 | Link | |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,496
|
Quote:
(rest deleted cos of muddlement on my part) David Last edited by wonkey_monkey; 20th November 2009 at 18:48. |
|
20th November 2009, 18:40 | #3 | Link |
Avisynth language lover
Join Date: Dec 2007
Location: Spain
Posts: 3,431
|
How about
Overlay (clipclean, last, mask=clipedge, mode="blend", opacity=1) where the original source is still in 'last'. It could probably be done better with some masktools function, but Didée's your man for that. |
20th November 2009, 19:12 | #4 | Link |
LaTo INV.
Join Date: Jun 2007
Location: France
Posts: 701
|
mt_merge(clipclean,clipedge.greyscale(),clipedge,luma=true,chroma="process") # but why do you want this?
Maybe it's this: mt_merge(clipclean,last,clipedge,luma=true,chroma="process") # *last* is for the original source |
20th November 2009, 19:19 | #5 | Link |
Robert
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
|
Thanks Gavino and Lato.
Lato I thought that by replacing the original edges onto a denoised source, It would be helpful in Keeping the edges clean and counter act the denoising process. Am I thinking wrong? |
20th November 2009, 19:21 | #6 | Link | ||
LaTo INV.
Join Date: Jun 2007
Location: France
Posts: 701
|
Quote:
Quote:
|
||
21st November 2009, 09:30 | #10 | Link |
Robert
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
|
so enhancing the edge is not feasible? I've tried and am not sure if Im doing anything at all.
Here is what I put. clipedge=last.mt_edge(mode="prewitt").lsfmod() would this be a possible use for mt_binarize()? What is there to enhance on edges? Thanks |
21st November 2009, 09:34 | #11 | Link |
LaTo INV.
Join Date: Jun 2007
Location: France
Posts: 701
|
This is WRONG! clipedge is just a mask...
Here is the correct syntax: Code:
clipclean=last.TTempSmooth() # your denoised clip clipsharp=last.LSFmod() # your enhanced clip clipedge=last.mt_edge() # the edgemask to merge the two mt_merge(clipclean,clipsharp,clipedge,luma=true,chroma="process") |
21st November 2009, 19:07 | #12 | Link |
Robert
Join Date: Jan 2008
Location: Stuttgart
Posts: 407
|
Lato,
I understand that they are just a mask. However there are different modes for the edgemask. Ive looked at them and they are different. My question was once you have the edgemask can you do anything with it, like enhance...... But apparently not. I understood what you had given me before. So masks can only be merged. Understood. I did read the documentation and hence the questions. I dont understand why everyone is so quick to say read this as if a question is such an inconvienance. If its such a bother then dont respond in the first place. Not everyone is as knowledgeable about avisynth or perhaps masktools so I guess questions will come up no matter how WRONG they seem. Thanks for the explanation and your help. |
21st November 2009, 19:18 | #13 | Link | |
LaTo INV.
Join Date: Jun 2007
Location: France
Posts: 701
|
Quote:
But, you said this: Code:
What is there to enhance on edges? So, where is the problem with my answer? Your question should be: Code:
What is the way to enhance edgemask? "prewitt" is a robust mode for mt_edge but it's slower, I always use this one (and "min/max" when I need speed) |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|