Welcome to WSL!

New to the forum? Please read this and this.

[DEV] Center of mass

Where the future is being made, today.

Welcome to the WSL development corner!

In this forum, please post your development projects. You get kudos and feedback here.
Topics ideally have preset prefixes, and this is what they (might) mean:

  • [DEV] - very much work in progress, don't build a business on this, could go anywhere
  • [BETA] - should kinda do what it's supposed to do, please test, give feedback
  • [RC] - this may end up in Reactor soon, polishing up, now's the time for last minute thoughts
  • [ABD] - died a premature death, sadness, will not see the light of day ever (unless someone picks up the scraps)

Once a development project has been released (hurray), topics can be marked as - you guessed it - [RELEASED] :cheer:

Development topics only, please. For generic questions, how-to's, questions and inquiries about existing tools etc, please go to the appropriate other forums.
User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#16

Post by tida »

@danell thanks for the feedback. Now additional options:
A) show/hide either Mass Object and Center Object
B) blend slider for the two images
C) color sliders to weighting either R, G, and B (standard is luminance)
D) average slider to smoothen center of mass movements

Would be great to get some more feedback.
td_CenterOfMass.fuse
You do not have the required permissions to view the files attached to this post.

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#17

Post by tida »

This version works with an Output. You don't need to connect the Center Object to the Fuse. You are also able to use the ConnectTo-Method for X/Y-Points as well as for X or Y Numbers.
td_CenterOfMass.fuse
You do not have the required permissions to view the files attached to this post.

User avatar
danell
Fusioneer
Posts: 245
Joined: Mon Dec 12, 2016 6:32 am
Been thanked: 13 times

Re: [DEV] Center of mass

#18

Post by danell »

Thank you so much for your work with all these fuses! This and the RotoRefine is so fast and so great! <3

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#19

Post by tida »

Thanks @danell, the combination of a DCTL and the Outputs was a little bit tricky. To let the Output working you need to run the PreCalcProcess function. The processing of the Output image needs to be handled by a global image variable which is filled up only in the Process function.

But in general, it could be simplified to a Modifier whereas the image is handled like in the Probe Modifier...

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#20

Post by tida »

Center of mass with additional size control. Did also include a switch that can choose between white (brightness) or black (darkness) for the center of mass calculation. Alpha channel is important when it comes to include black (darkness)
td_CenterOfMass.fuse
You do not have the required permissions to view the files attached to this post.

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#21

Post by tida »

Next Version:
A) Added Stabilize checkbox. Now you can also stabilize either X,Y or XY position of source (mass) image when appending a Transition and Connect-To it's Center.
B) Improved averaging by implementing internal frame re-timing. The average position is now exactly the determined mean value. Old version had a lag in time as it did not take into account future frames.
td_CenterOfMass.fuse
You do not have the required permissions to view the files attached to this post.

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#22

Post by tida »


User avatar
danell
Fusioneer
Posts: 245
Joined: Mon Dec 12, 2016 6:32 am
Been thanked: 13 times

Re: [DEV] Center of mass

#23

Post by danell »

Great work once again! I was actually using the fuse yesterday to stabilize some stuff. Now it's even easier! haha

User avatar
tida
Fusionista
Posts: 251
Joined: Mon Jan 27, 2020 4:37 am
Answers: 1
Real name: none
Been thanked: 38 times

Re: [DEV] Center of mass

#24

Post by tida »

Sorry, for the bunch of new versions:
A) Added MultiButtonControl to choose between Stabilizing method much faster.
B) Changed to Canvas Sampling for Center Object Image Output
C) Direct access to stabilizing effect. (If the second image Channel is not connected it will use a Duplicate for the Center Object)

Hopefully, it's more intuitive to use.
td_CenterOfMass.fuse
You do not have the required permissions to view the files attached to this post.