Plan 9 from Bell Labs’s /usr/web/sources/contrib/fgb/root/sys/src/ape/lib/jbig/examples/jbgtests.m

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


% MATLAB code to generate test files that exercise a JBIG codec

width = 1200;
img = [];
for y=1:650;
    mx = ceil(y / 5);
    line = uint8(repmat(round(rand(1,mx)),1,ceil(width/mx))) == 1;
    img = [img ; line(1:width)];
end
imwrite(img, 'mx.png', 'PNG');

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.