I just noticed when using uint16 imaging data along with a frame_apply function in ImageWidget: lambda frame: frame - movie_mean, which results in negative values that overflow with numpy uint16 without raising warnings or exceptions. We could either always use float32 as the isolated buffer for ImageGraphic and/or allow choosing the dtype for the isolate buffer.
I just noticed when using
uint16imaging data along with aframe_applyfunction inImageWidget:lambda frame: frame - movie_mean, which results in negative values that overflow with numpyuint16without raising warnings or exceptions. We could either always usefloat32as the isolated buffer forImageGraphicand/or allow choosing the dtype for the isolate buffer.