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. |
|
![]() |
#1 | Link |
Registered User
Join Date: Oct 2021
Posts: 83
|
How do you view edge masks?
I'm trying to create a Sobel Edge mask and I get no errors but literally nothing happens when I should be seeing detected edges.
I am using this article as a guide however literally nothing happens. The clip is YUV420P8 so 470BG This code does nothing: core.std.Binarize(clip,24, v0=0, v1=255) clipmax = core.std.Maximum(clip) clipmin = core.std.Minimum(clip) minmax = core.std.Expr([clipmax, clipmin], 'x y -') mask = core.std.Sobel(clip, 0) luma = core.std.ShufflePlanes(mask, 0, colorfamily=vs.GRAY) Neither does this: This code does nothing: core.std.Sobel(clip) sx = core.std.Convolution(clip,[-1, -2, -1, 0, 0, 0, 1, 2, 1], saturate=False) sy = core.std.Convolution(clip,[-1, 0, 1, -2, 0, 2, -1, 0, 1], saturate=False) core.std.Expr([sx, sy], 'x y max') Am I supposed to display the mask layer somehow? |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,765
|
You need an add output at the end: your_clip_name.set_output()
In your case it would be Code:
luma.set_output() Code:
mask.set_output()
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|