I've installed the supplied Deflicker macro (Shake 4.1 : the cookbook), but cannot set the 'crop box' to the desired size and position ?
The crop box gets set to the reference frame size and cannot thereafter be resized ... can be positioned but not re-sized smaller.
Anybody know what the problem could be ? Workaround ?
I'm running on Mac Pro, 2x3GHz quad, 5GB-RAM, Mac OS X (10.4.11)
Thanks,
David.
PS : Following is the code as supplied ('shake_install_location'/doc/html/cook/macros/Deflicker) :
===> START : deflicker.h <===
image Deflicker(
image Ref=0,
image In=0,
int cropLeft=0,
int cropBottom=0,
int cropRight=width,
int cropTop=height
)
{
Ref1 = Bytes(Ref, 4);
In1 = Bytes(In, 4);
Crop1 = Crop(In1, cropLeft, cropBottom, cropRight, cropTop);
Crop2 = Crop(Ref1, Crop1.cropLeft, Crop1.cropBottom, Crop1.cropRight, Crop1.cropTop);
PercentBlur1 = PercentBlur(Crop2, 1000, 1000, 0, "rgba");
PercentBlur3 = PercentBlur(Crop1, 1000, 1000, 0, "rgba");
Resize1 = Resize(PercentBlur1, Crop1.In.width, Crop1.In.height, "impulse", 0);
Resize4 = Resize(PercentBlur3, Crop1.In.width, Crop1.In.height, "impulse", 0);
IDiv1 = IDiv(Resize1, Resize4, 1, 100, 1);
IMult1 = IMult(IDiv1, In1, 1, 100, 0);
ret = Bytes(IMult1, 1);
return ret;
}
===> END : deflicker.h <===
===> START : deflickerUI.h <===
nuiPushMenu("Tools");
nuiPushToolBox("Color");
nuiToolBoxItem("@Deflicker",Deflicker());
nuiPopToolBox();
nuiPopMenu();
nuiDefSlider("YoCro.blue",0,3,0,0,0);
===> END : deflickerUI.h <===