how to apply dct on each color plane of an RGB image
8 views (last 30 days)
Show older comments
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
on 4 Feb 2019
Separete each pane first and then do it. you have to separate R G and B of the Image.
Accepted Answer
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!