Login | Register 
FEATURES
APPLICATIONS
DOWNLOADS
EDUCATION
BLOG
WIKI
FORUM
STORE

Image processing

General discussion about anything TouchDesigner

Image processing

Postby f82 » Sat Jun 16, 2018 2:16 pm

Hi

have wierd time solving this.

Task is to limit/crop ANY input image to the first pixels with alfa>0

How would you approach that issue in TD.
Appreciate input (#TheBadTouch) :)

Kind regards
f8
Attachments
banana_alfa_out.PNG
banana_alfa_out.PNG (102.61 KiB) Viewed 902 times
f82
 
Posts: 2
Joined: Wed Jun 06, 2012 4:26 pm

Re: Image processing

Postby nettoyeur » Sun Jun 17, 2018 6:54 pm

interesting challenge - here's my attempt:

autoCrop.png
autoCrop.png (58.93 KiB) Viewed 831 times
Attachments
autoCrop.tox
(1.94 KiB) Downloaded 38 times
Idzard Kwadijk | freelance TouchDesigner consultant | LinkedIn
Checkout ChopChopChop.org - the TouchDesigner marketplace!
nettoyeur
 
Posts: 993
Joined: Mon Oct 15, 2012 12:00 pm
Location: Amsterdam, The Netherlands

Re: Image processing

Postby timgerritsen » Sun Jun 17, 2018 7:32 pm

The analyse top & chop are quite nice for this.
Here's my attempt :)

cheers,
Tim
Attachments
CropAlpha.tox
(1.74 KiB) Downloaded 32 times
timgerritsen
 
Posts: 58
Joined: Sun Jan 24, 2016 6:57 am

Re: Image processing

Postby f82 » Wed Jun 20, 2018 4:40 am

You guys are gentlemen and scholars.

You can do this with getbbox method from python's PIL but thats just a lazy cheap trick.

I appraciate your solutions so much more :)

f8
f82
 
Posts: 2
Joined: Wed Jun 06, 2012 4:26 pm


Return to General TouchDesigner Discussion

Who is online

Users browsing this forum: lindablazeks and 17 guests