why this error when i use the separate channel from RGB image in integer wavelet transform?

1 次查看(过去 30 天)
hello, please help me
when i use the integer wavelet transform on RGB image everything is ok there is no problem, but when i separate the image into its layers R, G, and B and applying the integer wavelet transform in single layer R, G, or B the program return errors _ _ "Integers can only be combined with integers of the same class, or scalar double."__ .this error will gone if i convert the data type of layer from uint8 class to double class but i want to keep the integer type. please help me to solve this problem?
imdata = imread('1.tif');
liftscheme = liftwave('haar','int2int');
RedChannel= imdata (:, :, 1);
GreenChannel = imdata (:, :, 2);
BlueChannel = imdata (:, :, 3);
[LLC, LHC, HLC, HHC] = lwt2(RedChannel, liftscheme);

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Wavelet Toolbox 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by