trane293 / DDSMUtility

Utility to greatly simplify downloading, converting, viewing and extracting annotations from the Digital Database for Screening Mammography (DDSM) database available here: http://marathon.csee.usf.edu/Mammography/Database.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code does nothing. No errors received.

Gandelion opened this issue · comments

Hello and thank you for this wonderful code.
I am facing an issue while trying to convert the images.
I did everything in the tutorial.
When I try to run the script nothing happens. I don't get any errors so I have no idea what the problem is.
I do however get a warning that says:

Warning: NARGCHK will be removed in a future release. Use NARGINCHK or
NARGOUTCHK instead.

In pnmsetup (line 31)
In run (line 96)
In openDDSMLJPEGAndConvertToPNG (line 15)

I hope that you can help me! thanks!

Sincerely,
Gandelion

Ok so I managed to fix the problem.
I needed to change 2 things in the script:

  1. line 31- change AllCollectionsOfDDSM{4,t} to AllCollectionsOfDDSM{5,t}
  2. line 40- change a{4,i} to a{5,i}
    and now the script runs and converts the images!

@Gandelion, same issue here. I also tried the modifications you mentioned. It did not work for me. Also, What should be the value of numOfFolders1 variable. The value its showing is 75. I have 70 folders other than the three files we are supposed to copy in the dataset directory.

@Gandelion Hello, can I help me?
I also make the modifications you mentioned, but I find another problem and it not converts the images.

This is my error:
C_0029_1.LEFT_CC.LJPEG
Converting file C_0029_1.LEFT_CC.LJPEG...
Currently in Folder -
benign_01\case001
Decompressing LJPEG -> LJPEG1...
/usr/bin/bash: line 0: cd: too many arguments

@mariannanovaes
Hello
Make sure your “cygwinLocation” variable is correct.
For me it is: cygwinLocation = 'C:\cygwin\bin\bash';

@CamRes
I believe it's 75 because of the two built-in variables: "." and ".." that appear in every directory. so if you have 70 folders and three files it should say that the value is 75. You can see for yourself just open the variable numOfFolders1 in the workplace.

hello,I met the error as follow?can you help me ?
@Gandelion
@trane293
Converting file B_3369_1.RIGHT_MLO.LJPEG...
Currently in Folder -
benign_04/case3369
Decompressing LJPEG -> LJPEG1...
/usr/bin/bash: ./jpeg.exe: No such file or directory
Converting LJPEG1 -> RAW...
/usr/bin/bash: ./ddsmraw2pnm.exe: No such file or directory

The path is setting as follow:
CollectionDirectory = 'H:\DDSMUtility-master\benigns';
pathToJPEGandDDSM2RAWfiles = 'H://DDSMUtility-master//benign_con//;';
cygwinLocation = 'C:\cygwin64\bin\bash';

@Gandelion
I change 2 things in the script as what you said,and I converted the image successfully! Thank you very much!