function [data] = read2Matrix(machineFormat, filename, pixels_across, scanlines)

% read data from a binary file to a matrix
%

tmp = readBinary(machineFormat, filename);
data = reshape(tmp, pixels_across, scanlines);

