フィルターのクリア

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

1 回表示 (過去 30 日間)
Ahmed almansory
Ahmed almansory 2016 年 11 月 22 日
コメント済み: Ahmed almansory 2016 年 11 月 22 日
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);
  2 件のコメント
KSSV
KSSV 2016 年 11 月 22 日
After the result, you have a option to convert double to uint8..

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeWavelet Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by