Recompute with Threshold

Share your custom panels, brushes, papers... (you need to be registered to read posts in this section)
Post Reply
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Recompute with Threshold

Post by Mads Juul »

I have tried to solve the problem from this request viewtopic.php?f=21&t=5204
with a script of my own. and I think it works for my needs
the script work that way on current layer from start point it will look for the next new image and delete the instances between and put in exposures.
You can increase the accuracy by changing the split value in the top of the embedded george script. the split value is how many time in the width and height the script will look for a change. and change the sensitivity by changing the threshold value in the start of the script.
-Mads
Attachments
Recompute_with_Threshold.tvpx
(34 KiB) Downloaded 206 times
User avatar
Fabrice
Posts: 10077
Joined: 17 Jul 2007, 15:00
Contact:

Re: Recompute with Threshold

Post by Fabrice »

interesting :)
Fabrice Debarge
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Recompute with Threshold

Post by Mads Juul »

Thank you. it actually works for my needs. to my big surprise. And it is faster than I expected(hats of to George). But get's a little slow ehen you run on 5000 frames.

-Mads
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Recompute with Threshold

Post by Hervé »

humm nice job but a little bit memory and config file intensive

why you don't use the spare buffer to store the previous image ?
-tv_copytospare
to copy the current image to the spare buffer
-tv_getpixellayer "s" x y
to read the spare pixel value
Hervé ADAM, TVPaint Team
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Recompute with Threshold

Post by Mads Juul »

Hervé wrote:humm nice job but a little bit memory and config file intensive

why you don't use the spare buffer to store the previous image ?
-tv_copytospare
to copy the current image to the spare buffer
-tv_getpixellayer "s" x y
to read the spare pixel value
Cool I will do that :-)
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Recompute with Threshold

Post by Hervé »

the other way is to use arrays in GRG
PixelArray(1,2) = "Pixel Array"
tv_warn PixelArray(1,2)
Hervé ADAM, TVPaint Team
User avatar
Mads Juul
Posts: 3992
Joined: 02 May 2007, 19:18

Re: Recompute with Threshold

Post by Mads Juul »

what do you think is fastest?
User avatar
Hervé
Site Admin
Posts: 3490
Joined: 08 Feb 2006, 17:00
Location: Metz France
Contact:

Re: Recompute with Threshold

Post by Hervé »

madsjuul wrote:what do you think is fastest?
Arrays are faster but use more memory
Hervé ADAM, TVPaint Team
Post Reply