Why my output image file turn out grayscale?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
hey im trying to implement an image procecssing algorithm in simulink for xilinx fpga. my question is why my output is grayscale? i dont even implement the algorithm yet. whats wrong with my code?
thanks for the answer:)
1 Comment
KSSV
on 25 Oct 2017
How did you read the image in matlab?
Answers (1)
Bharath Venkataraman
on 2 Nov 2017
Edited: Bharath Venkataraman
on 2 Nov 2017
0 votes
You have two issues with your model.
- Change the Output Buffer Size setting for the Buffer block to 512*512*3.
- Instead of the Covert 1-D to 2-D block, use the reshape block with the setting Output dimensionality set to Customize and the Output Dimensions set to [512,512,3]. Connect the Reshape block to the Video Viewer1 and output workspace block.
I was able to see the color image in both Video viewer1 and Video viewer2.
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!