Why my output image file turn out grayscale?

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

How did you read the image in matlab?

Answers (1)

You have two issues with your model.
  1. Change the Output Buffer Size setting for the Buffer block to 512*512*3.
  2. 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.

Asked:

on 25 Oct 2017

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!