how to apply dct on each color plane of an RGB image

8 views (last 30 days)
given a 2d image i understand how to apply the dct but how do i separate a 3d color image into its rgb color planes and apply the dct to each plane?
  2 Comments
Omung Puri
Omung Puri on 4 Feb 2019
Separete each pane first and then do it. you have to separate R G and B of the Image.
Image Analyst
Image Analyst on 4 Feb 2019
Yes, and the code for that was given below 4 years ago.

Sign in to comment.

Accepted Answer

Image Analyst
Image Analyst on 14 Dec 2014
% Extract the individual red, green, and blue color channels.
redChannel = rgbImage(:, :, 1);
greenChannel = rgbImage(:, :, 2);
blueChannel = rgbImage(:, :, 3);
After that, you said "i understand how to apply the dct" so just do that on each individual color channel.

More Answers (0)

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!