MCPcopy Create free account
hub / github.com/Infiziert90/getnative / mask_detail

Method mask_detail

getnative/app.py:249–255  ·  view source on GitHub ↗
(self, clip, final_width, final_height)

Source from the content-addressed store, hash-verified

247 # Original idea by Chibi_goku http://recensubshq.forumfree.it/?t=64839203
248 # Vapoursynth port by MonoS @github: https://github.com/MonoS/VS-MaskDetail
249 def mask_detail(self, clip, final_width, final_height):
250 temp = self.scaler.descaler(clip, final_width, final_height)
251 temp = self.scaler.upscaler(temp, clip.width, clip.height)
252 mask = core.std.Expr([clip, temp], 'x y - abs dup 0.015 > swap 16 * 0 ?').std.Inflate()
253 mask = _DefineScaler(kernel="spline36").upscaler(mask, final_width, final_height)
254
255 return mask
256
257 def save_images(self, src_luma32):
258 src = src_luma32

Callers 1

save_imagesMethod · 0.95

Calls 1

_DefineScalerClass · 0.85

Tested by

no test coverage detected