I need to make DCT image compression in Simulink. Image size by default has 3 dimensions, so I used reshape tool to remove the third dimension. Color Space Conversion tool only accepts 3 dimensional images, so I used reshape again.
ANSWER
Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.
inputNumel = prod([512,512,3]) inputNumel = 786432
Your desired output has this 1/3 as many elements.
outputNumel = prod([512,512]) outputNumel = 262144
Since you are trying to change then number of elements, the reshape block is throwing an error.
Comments
Post a Comment