Help me display my images? Simulink's Video Viewer block shows a black Image when using default settings and Matlab examples

5 views (last 30 days)
I am currently trying to run the example for Correct Nonuniform Illumination in Simulink. I obtained the following images after running the example in the link below. Do you have an idea what's wrong?
  3 Comments
Noma
Noma on 9 Aug 2016
Yes this is ex_vision_correct_uniform run on MAtlab 2016a.
I checked some Simulink examples that use the Video Viewer from the Computer Vision toolbox and they seem to work. Maybe I have a parameter wrong.
Noma
Noma on 9 Aug 2016
This is the warning it is giving:
Wrap on overflow detected at time 0 in 'ex_vision_correct_uniform/Sum1'. Suppressing additional wrap on overflow warnings and continuing simulation. You can suppress this message by setting 'Configuration Parameters > Diagnostics > Data Validity > Wrap on overflow' parameter to 'none'.

Sign in to comment.

Accepted Answer

Swarooph
Swarooph on 9 Aug 2016
You say 'Maybe I have a parameter wrong.' Did you change anything in the model before running it?
FWIW, I see the same behavior in MATLAB R2016a with respect to the black windows but NOT the overflow errors. However changing the sample time of the Image From File block from Inf to something discrete like 0.1 gives the expected result.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!