01.01.2023, 22:51
Hello Selur,
I modified the function conditional_resize to try to fix the implementation problems. To do that I wrote the python script kagefuncMOD.py
In input now there are the files already resized. To simplify the test script, I used 2 external files already resampled, but the idea is that the resize is performed directly in the script by using 2 different methods.
In the new function conditional_resize_ext the test is simplified (I don't know if it could be improved). I also changed the test condition in order to use the abs() function since the error could be on both the clips (too sharp or too smooth). In the case of "thr=0" the 2 clips are always merged with the weight specified in input (default = 0.5). In the case of weight=0 is returned the "down" clip, vice-versa in the case of weight=1.0 is returned always the "sharp" clip.
I also attached an archive with the comparison.
Let me know what do you think and if it is feasible to include this script in Hybrid.
Feel free to change the script to improve it or to adapt to your needs.
Thanks,
Dan
I modified the function conditional_resize to try to fix the implementation problems. To do that I wrote the python script kagefuncMOD.py
In input now there are the files already resized. To simplify the test script, I used 2 external files already resampled, but the idea is that the resize is performed directly in the script by using 2 different methods.
In the new function conditional_resize_ext the test is simplified (I don't know if it could be improved). I also changed the test condition in order to use the abs() function since the error could be on both the clips (too sharp or too smooth). In the case of "thr=0" the 2 clips are always merged with the weight specified in input (default = 0.5). In the case of weight=0 is returned the "down" clip, vice-versa in the case of weight=1.0 is returned always the "sharp" clip.
I also attached an archive with the comparison.
Let me know what do you think and if it is feasible to include this script in Hybrid.
Feel free to change the script to improve it or to adapt to your needs.
Thanks,
Dan