SPCImage 中使用了哪种过滤来进行分箱?

Which kind of filtering is used in SPCImage for binning?

我想知道是否有人知道 Becker & Hickl 系统的 SPCImage 使用了哪种滤镜。

我正在用我的系统获取一些 FLIM 数据,我想创建终生图像。为此,我想以与 SPCImage 相同的方式对我的图像进行装箱,这样我就可以增加我的信噪比。分箱像 1x1、3x3、5x5 等。我已经创建了进行 3x3 分箱的函数,但每次都变得更加复杂...

我想在 MATLAB 中完成,也许已经有一个函数可以帮助我。

非常感谢您的帮助。

我认为您需要 test/investigate 图像滤镜功能才能应用到这个图像之王 Fluorescence-lifetime 成像显微镜。

显示 here 的中值滤波器有助于平滑事物。或应用于图像的加权移动平均滤波器消除亮点并仅保留广泛的特征

所以你需要复习一下matlab中的数字图像处理

这个问题很老了,但对于其他想知道的人来说:您想对每个平面(M 整数)的 (2M+1) x (2M+1) 邻域中的像素求和。所以我很确定你可以通过将其视为卷积来解决这个问题。

#This is your original 3D SDT image
#I assume that you have ordered the image with spatial dimensions along the
#first and second and the time channels are the third dimension.    
img = ... #<- your 3D image goes here    

#This describes your filter. M=1 means take 1 a one pixel rect around your
#center pixel and add the values to your center, etc... (i.e. M=1 equals a
#total of 3x3 pixels accumulated)
M=2

#this is the (2D) filter for your convolution
filtr = ones(2*M+1, 2*M+1);

#the resulting binned image (3D)
img_binned = convn(img, filtr, 'same');

您绝对应该根据您的计算检查结果,但它应该可以解决问题。