谁有DDSM的heathusf程序的工作版本,可以在linux或windows上使用标准化?我知道在http://www.cs.unibo.it/~roffilli/sw.html上有一个适用于linux的DDSM的jpeg程序的工作版本,我编译并测试了它。我使用了这里描述的MATLAB代码来查看图像。只有某些扫描仪才能正确显示。
如论文http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.111.3846所述,当正确编译时,DDSM软件将图像数据输出为原始字节流;然后,必须根据用于对原始胶片进行图像处理的数字化仪模型对这些数据进行标准化,然后创建可由图像分析软件环境读取的图像文件。
任何帮助都是非常感谢的。谢谢!
程
发布于 2013-04-14 13:28:46
我找到了一个complete解决方案,它可以下载、归一化(基于扫描仪)并将图像转换为格式。克里斯·罗斯博士编写了这个程序,它可以在https://github.com/multinormal/ddsm的GitHub上找到
发布于 2013-01-13 17:00:21
DDSM图像是以.LJPEG格式压缩的,在处理它们之前需要先解压缩。
我已经想出了一种将DDSM图像转换为原始图像的方法,但这是一条很长的路,而且我没有更好的方法。
steps:中的
1. Clone the repository at [https://github.com/multinormal/ddsm](https://github.com/multinormal/ddsm), which contain two executables [ `jpeg.exe` and `ddsmraw2pnm.exe` ].
2-下载并安装cygwin。
3-下载并设置Matlab pnmreader code。
4-创建一个文件夹,使其内容如下所示:
的其他位置获取
5- ConvertDDSMImageToRaw函数的实现。
function ConvertDDSMImageToRaw(filename, columns, rows, digitizer)
%// ConvertDDSMImageToRaw Convert an image of ddsm database to raw image.
%// -------------------------------------------------------------------------
%// Input:-
%// o filename : String representing ddsm image file name.
%// o columns : Double representing number of columns in the image.
%// o rows : Double representing number of rows in the image.
%// o digitizer: String representing image normalization function name,
%// which differ from one case to another and have the set of
%// values ['dba', 'howtek-mgh', 'howtek-ismd' and 'lumisys' ]
%// -------------------------------------------------------------------------
%// Prepare and execute command of image decompression
commandDecompression = [which('jpeg.exe') ' -d -s ' filename];
dos(commandDecompression);
%// -------------------------------------------------------------------------
%// Prepare and execute command that convert the decompressed image to pnm format.
rawFileName = [ filename '.1'];
columns = num2str(columns);
rows = num2str(rows);
digitizer = ['"' digitizer '"'];
commandConversion =[ which('pnm.exe') ,' ',rawFileName,' ',columns,' ',rows,' ',digitizer];
dos(commandConversion);
%// -------------------------------------------------------------------------
%// Wrtie the image into raw format
pnmFileName = [rawFileName '-ddsmraw2pnm.pnm'];
image = pnmread(pnmFileName);
imwrite(image,[filename '.raw']);
end6-从.ics文件中获取图像信息[cols,rows,digitizer]:

如果数字转换器是“howtek”,使用它作为“howtek-mgh”,这就是我想出来的。
7-现在使用我们实现的函数转换您的图像,如下所示:
filename = 'A_1709_1.LEFT_CC.LJPEG';
digitizer = 'howtek-mgh';
imageSize = [ 5341 2806 ];
ConvertDDSMImageToRaw(filename, imageSize(1) , imageSize(2), digitizer);发布于 2016-03-30 23:11:14
https://stackoverflow.com/questions/13365587
复制相似问题