我是第一次接触MatLab和它的工具箱。我正在尝试实现this paper中提到的一个方法。
提到将图像的每个RGB像素组合成超复数形式,该超复数形式由一个实部和三个虚部(i,j和k)组成。
我已经尝试和寻找了很长时间,以便找到一个解决方案,如何在MatLab中将每个RGB像素表示为超复杂的形式。它将使用这种超复数表示来应用QFT (四元数傅立叶变换)。
如果有人能帮我,我会很高兴的。
发布于 2019-12-16 18:52:06
谷歌是你的朋友。
%requires the open-source quaternion toolbox
%Read the input colour RGB (3-channel) n x n x 3 pixels square image
I = imread('input_colour_image.tif');
% Encode RGB image in the three imaginary parts of a quaternion
qI = convert(quaternion(I(:,:,1),I(:,:,2),I(:,:,3)),'double')./256;https://stackoverflow.com/questions/59352673
复制相似问题