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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th May 2020, 06:51   #41  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
It's the beating heart of the video
Nice video stabilisation btw.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Old 9th November 2021, 10:29   #42  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by StainlessS View Post
Prewitt exposé by Fluffy[it is different in AVS compared to VS]:- https://forum.doom9.org/showthread.p...05#post1839205
This may be a long shot but does anyone happen to have a copy of that post? The thread was deleted unfortunately.


Edit:
This is like the third thread that I see that has been deleted in the last few months. Kinda sucks that people spend time to reply just to have their messages deleted when the OP deleted the thread.

Last edited by Reel.Deel; 9th November 2021 at 10:33.
Reel.Deel is offline   Reply With Quote
Old 9th November 2021, 16:07   #43  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by Reel.Deel View Post
This may be a long shot but does anyone happen to have a copy of that post? The thread was deleted unfortunately.


Edit:
This is like the third thread that I see that has been deleted in the last few months. Kinda sucks that people spend time to reply just to have their messages deleted when the OP deleted the thread.
Looks like it was HAvsFunc thread by HolyWu. Here you go, that post you are looking for:

Quote:
Originally Posted by TheFluff View Post
The Masktools Prewitt is super weird, yes. To refresh the maths: the Prewitt operator as commonly implemented in image processing calculates the magnitude of a gradient in a 3x3 pixel grid, horizontally and vertically, by applying two convolutions, one for the horizontal and one for the vertical direction, commonly referred to as Gx and Gy respectively:
Code:
Gx (horizontal):
  -1   0   1
  -1   0   1
  -1   0   1

Gy (vertical):
   1   1   1
   0   0   0
  -1  -1  -1
The total gradient magnitude is then calculated as sqrt(Gx² + Gy²). A common optimization to avoid the square root is to approximate the magnitude by simply adding the absolute values of Gx and Gy, i.e. abs(Gx) + abs(Gy). This is a decent approximation if one of them is small (that is, the edge is straight, either vertically or horizontally) but pretty bad otherwise.

The Vapoursynth implementation is just straight up the canonical Prewitt - the pixel values on the 3x3 grid are called a<column><row>, so the upper left corner of the grid is a11 and the bottom right corner is a33:
Code:
float scale = params.scale;
float gx, gy;

gx = a31 + a32 + a33 - a11 - a12 - a13;
gy = a13 + a23 + a33 - a11 - a21 - a31;

return std::sqrt(static_cast<float>(gx * gx + gy * gy)) * scale;
(Some surrounding code omitted for clarity.)

Masktools does something completely different - I guess it works in practice, but it's not what is typically called a Prewitt operator:
Code:
const int p90 = a11 + a21 + a31 - a13 - a23 - a33;
const int p180 = a11 + a12 + a13 - a31 - a32 - a33;
const int p45 = a12 + a11 + a21 - a33 - a32 - a23;
const int p135 = a13 + a12 + a23 - a31 - a32 - a21;

const int max1 = max<int>( abs<int>( p90 ), abs<int>( p180 ) );
const int max2 = max<int>( abs<int>( p45 ), abs<int>( p135 ) );
const int maxv = max<int>( max1, max2 );

return threshold<Byte, int>( maxv, nLowThreshold, nHighThreshold );
p90 and p180 are the same as Gx and Gy, but then there's also a "diagonal Prewitt" calculation, using these two kernels:
Code:
"G45"
   1   1   0
   1   0  -1
   0  -1  -1

"G135"
   0   1   1
  -1   0   1
  -1  -1   0
Instead of the usual Prewitt which kinda sums the horizontal and vertical magnitude, this returns the maximum magnitude - max(max(Gx, Gy), max(G45, G135)).
EDIT:

Ha, I noticed this post there:

Quote:
Originally Posted by l00t View Post
Dear HolyWu,

If you have some spare time, would you be so kind to port InpaintDelogo to VS? I only found DelogoHD available for VS, but making an lgd file is a pain-in-the-a** compared to VoodooFX's automated process...

https://forum.doom9.org/showthread.php?t=176860

Thanks in advance!

Last edited by VoodooFX; 9th November 2021 at 16:13.
VoodooFX is offline   Reply With Quote
Old 9th November 2021, 16:19   #44  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Nice to know that VX has a copy of Doom9 forum on his hard drive
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 9th November 2021, 16:33   #45  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
About prewitt, asd-g was ported it to avisynth
https://github.com/Asd-g/AviSynthPlu...r/Prewitt.avsi
kedautinh12 is offline   Reply With Quote
Old 9th November 2021, 16:43   #46  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
Quote:
Originally Posted by StainlessS View Post
Nice to know that VX has a copy of Doom9 forum on his hard drive
I was thinking about it, but no I don't have a copy, I hope someone else is preserving Doom9, just in case.

It's just from Google's cache: http://webcache.googleusercontent.co...d.php?t=166582
VoodooFX is offline   Reply With Quote
Old 9th November 2021, 17:07   #47  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
Here's the Wayback Machine cache of how doom9.org looked in previous years:

https://web.archive.org/web/*/http://forum.doom9.org

It has been saved over 900 times in the past twenty years. You should be able to find pretty much anything you want, although sometimes each "save" doesn't capture an entire site, so you have to merge posts from two or three snapshots. As one example of how to use this, I was able to find a now-deleted blog that included a description of an event in which I participated, but which is no longer found by Google, probably because it no longer exists.
johnmeyer is offline   Reply With Quote
Old 9th November 2021, 17:55   #48  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Thanks guys,

And the google search command for VX results was presumably this [ where was thread No 166582 ]
Code:
cache:forum.doom9.net/showthread.php?t=166582
EDIT: Where browser address for this post page is page 3
Code:
https://forum.doom9.org/showthread.php?t=181240&page=3
Just remove the "https://" and "&page=3" and precede with "cache:", to find the entire thread in cache.

Can also use eg
Code:
"prewitt" NEAR "VoodooFX" site:forum.doom9.org
to find posts containing both "prewitt" and "VoodooFX", quite near to each other.

Was not aware of the cache: thingy.

EDIT: Search for
Code:
"prewitt" NEAR "TheFluff" site:forum.doom9.org
Fails to find the thread, Google seems to be now caching the failed attempts ["thread not found"] type pages instead of the lost thread itself.
But, the VoodooFX Google Cache: search thingy still works. [at the moment]
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 9th November 2021 at 18:21.
StainlessS is offline   Reply With Quote
Old 10th November 2021, 12:32   #49  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by VoodooFX View Post
Looks like it was HAvsFunc thread by HolyWu. Here you go, that post you are looking for:
VoodooFX! How did you find the thread that the post belonged to? I searched on google for the link in StainlessS' post but came up empty handed. Mind you, it was 5am for me (just like it is now) so I did not search any further and then posted here. Very sad that a thread with 33 pages was deleted, it should just have been closed .

Quote:
Originally Posted by johnmeyer View Post
Here's the Wayback Machine cache of how doom9.org looked in previous years:
Yeah, I know about archive.org ... Unfortunately only a small percentage of off all doom9 is saved on there. For example, the thread in question from the previous post, only the first 2 pages of the 33 are actually saved on archive.org. That is true for many of the threads with multiple pages, even some threads with just one page are not saved. And then there's the problem that a thread can have many different links, for example
So sometimes people post links to a specific post and if you check the archive that link is not saved but sometimes the main thread link is archived but the page that the post that the user referenced is not.

I've gotten into the habit that anytime I see an informational thread or webpage, I archived it, the Internet Archive extension for Firefox makes it really easy: https://addons.mozilla.org/en-US/fir...k-machine_new/


@StainlessS


Thanks for the additional info about Google cache. Seems the havsfuc thread was deleted not too long ago, otherwise Google would not have it cached.

Last edited by Reel.Deel; 10th November 2021 at 12:34.
Reel.Deel is offline   Reply With Quote
Old 10th November 2021, 13:01   #50  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
This thread cache search dont work now, comes up with 404 [not found]. (where t=181240 is this thread)
Code:
cache:forum.doom9.org/showthread.php?t=181240
Maybe too many people doing search on it perturbed Google a bit,
and VX cache Search only works for first page of the missing thread.

EDIT:
Quote:
But if I reference the very first post it has different link: https://forum.doom9.org/showthread.p...92#post1906692
I suspect that D9/vBulletin post number is unique ID, where was the 1,906,692th post on Doom9.
(post 1906693 is likely in some other thread).
A thread is probably a list of non contiguous post numbers. [deletion of a post is just a removal of post number from thread list - and perhaps the post text too(although I suspect not)]

EDIT: from main D9 page,
Quote:
Threads: 152,746, Posts: 1,835,279, Members: 91,529
Welcome to our newest member, yo3ff
posts = 1,835,279, and as 1906692 is higher number, suggests that a lot of posts have been deleted.

Also, thread No 181240 is higher than current thread count (152,746), hinting at a number of threads (about 30,000) deleted.

EDIT: Latest thread number seems to be 183416 (most recent in New Posts with 0 replies) :- https://forum.doom9.org/showthread.php?t=183416
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 10th November 2021 at 14:23.
StainlessS is offline   Reply With Quote
Old 10th November 2021, 13:57   #51  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Note,
Google Search on this
Code:
"prewitt" NEAR "TheFluff" site:forum.doom9.org
Brings up link to the vBulletin "Invalid Thread specified. If you followed a valid link, please notify the administrator" message.
BUT, in the google results page link

Quote:
https://forum.doom9.org › showthread :::
HAvsFunc - Page 21 - Doom9's Forum
where ::: is 3 vertical dots, click the 3 dots and click cached, and it DOES still recover the page.

Also,
Quote:
Seems the havsfuc thread was deleted not too long ago, otherwise Google would not have it cached.
In the new additional Cache Data 3 dots thing [recently added by Google], I have seen some text on some pages (not doom 9) saying something like,
"Last cached more than 10 years ago".

EDIT:
My Favourite EVER seach result:
About 2004, I did an "Ask Jeeves" (was a sort of search engine, it gave answers rather than lists of links) search on
"Where can I buy a thermo-nuclear device"
and the result was,
"Have you tried the shopping channel."
Magic
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 10th November 2021 at 14:41.
StainlessS is offline   Reply With Quote
Old 10th November 2021, 14:39   #52  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,664
Quote:
Originally Posted by StainlessS View Post
In the new additional Cache Data 3 dots thing [recently added by Google], I have seen some text on some pages (not doom 9) saying something like,
"Last cached more than 10 years ago".
The thread was deleted sometime after Sept. 30, 2021. The last page (33) is not cached but if you search for "https://forum.doom9.org/archive/index.php/t-166582-p-3.html" - there is a cached version of that.
Reel.Deel is offline   Reply With Quote
Old 10th November 2021, 15:00   #53  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
This brings up 2 pages [3 and 13].
Code:
"HAvsFunc [Archive]" site:forum.doom9.org
I think the Archive thing is D9 archive, rather than google.

EDIT: Select the "repeat search with ommitted results included" [or words to that effect] and returns 2 more page 13's, maybe cache on different dates.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 10th November 2021 at 15:06.
StainlessS is offline   Reply With Quote
Old 10th November 2021, 16:00   #54  |  Link
VoodooFX
Banana User
 
VoodooFX's Avatar
 
Join Date: Sep 2008
Posts: 985
That thread was deleted sometime after 13 Oct 2021. On Google's cache last page I could find is 29 http://webcache.googleusercontent.co...166582&page=29
The last 33th page can be found on Bing's cache: http://cc.bingj.com/cache.aspx?q=htt...byqhzZTTYAxTmt
VoodooFX is offline   Reply With Quote
Old 10th November 2021, 16:56   #55  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,691
Quote:
Originally Posted by StainlessS View Post
EDIT:
My Favourite EVER seach result:
About 2004, I did an "Ask Jeeves" (was a sort of search engine, it gave answers rather than lists of links) search on
"Where can I buy a thermo-nuclear device"
and the result was,
"Have you tried the shopping channel."
Magic
After I read that, I was going to try the search myself, just for grins, and then realized that it would probably put me on some sort of "watch" list and my taxes would be audited and my phone tapped, so I didn't do it.

Thanks for taking the risk for all of us.
johnmeyer is offline   Reply With Quote
Old 10th November 2021, 17:43   #56  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
2004 was a more simple and innocent time.
[I have tried it since, maybe about 10 years ago, nothing too humerous as result].

Ask Jeeves, is now Ask.com [and changed its style to google-like, I think]

As a piss-off to FBI etc, was once quite common to have a whole list of stuff as standard header in e-mails,
eg Thatcher, Reagan, bomb, etc. [Oh dear, I is on the watch list now ]

EDIT: IIRC, about one or two weeks after the "Have you tried the shopping channel." result, it changed to "Sorry I dont know",
or similar.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 10th November 2021 at 22:27.
StainlessS is offline   Reply With Quote
Old 10th November 2021, 21:11   #57  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,795
For the sake of completion, here's the Avisynth prewitt version implemented in Vapoursynth https://github.com/HomeOfVapourSynth...sfunc.py#L5319
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database
ChaosKing is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.