Black and white column image MEDICAL PURPOSE
Show older comments
Hello gurus,
I need to create a video that will be used for medical purposes ( orthoptist visit ). The patient should look at a full screen video that shows black and white columns sliding to the right. There will be 10 different videos and each one will have a different column width , hence different column numbers ( from greater to smaller ) and theorically at a certain column width , the patient shouldn't be able to distinguish the black and white columns and he should see all grey.
What I want to do is create the .tif image with matlab and then with Adobe Premiere make the video. (If you have any other idea you're more then welcomed )
I'm struggling in creating the image because the smallest column width is 0,192 mm and I don t know how can i defien the exact column width.
This is what i did ( matrix.xlsx is an excel file with 1 and 0 )
filename = 'matrix.xlsx';
sheet = 1;
xlRange = 'A1:sf500';
A = xlsread(filename, sheet, xlRange)
imwrite(A , 'matrix.tif' , 'tif')
but it doesn't allow me to set the column width but just the number of columns and no matter how big my matrix is (500x500 or 5000x5000) I always get the same height.
The result of the code is

My laptop resolution is 1920x1080 ( FHD ) and my screen width is 34,5 cm ( it s a 15,6" screen). So my pixel size is 34,5/1920 = 0,01796 cm which is 0,1796 mm.
Answers (0)
Categories
Find more on Data Import and Analysis in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!