Collecting and publishing medical image datasets is an important task contributing the development of CAD systems for different diseases, but What kind of problem can we face after publishing it. for example if one of the cases is miss diagnosed.
Using medical images in cad systems fall under decission support systems to support the doctor decision and canot be relayed on alone. But if you means from ethics you should perform many procedures before publishing your own dataset to preserve the patients privacy according to the law