ddsm
ddsm copied to clipboard
the ddsmraw2pnm program has a problem in processing data whose scanner is dba
in the line 215 of the ddsmraw2pnm.c , the code "if(0 != raw)" does not change the value '0' and causes the '0' in the data be the 65534 in the generated pnm file. It causes much noise. And in the data of scanner dba, the background data are not the same. The code uses "if(raw < 4){raw = 4;}" to deal with the background data, but 4 is too small and there are much background data larger than 4. So the pnm will be will bad. If someone want to use the program , i think you should change the code to deal the problem