【发布时间】:2014-05-13 23:55:01
【问题描述】:
我有许多文件(例如 100 个)包含 CCD 相机的 512x512 像素的强度,每个文件都处于不同的光频率。 这些文件的格式如下:
1, 1, 602
1, 2, 598
1, 3, 546
第一个数字是像素的Row,第二个是像素的Column,最后一个是像素上的Intensity。
我想为这些像素中的每一个设置一个数组。到目前为止,这是我的代码:
%the user selects the "many files"%
filenames = uigetfile('*.csv','','','Multiselect','on');
%here to know the number of different frequency for each pixel
NumFiles = numel(filenames);
%There are 512x512 pixels, each with NumFiles different intensities
Pixel = cell(512,512,NumFiles);
在这部分之后,我不太确定如何进行。我希望 Pixel(1,1,:) 成为我的第一个像素的所有强度,这些信息取自每个文件。
马克-奥利维尔
【问题讨论】:
标签: matlab file pixel text-processing