<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br>> For example, if I have 30 dicom slices from 1 serie I read the serie, <br>> then process it and the result... 30 dicom slices in 30 different series.<br>> <br>> Using a series writer i can generate the unique output serie with all <br>> the slices, but don't know how to modify each individual slice.<br><br>Sounds like you may need to change the default IO setting to not regenerating unique UIDs for the series and study. Try:<br><br> typedef itk::GDCMImageIO ImageIOType;<br> ImageIOType::Pointer dicomIO = ImageIOType::New();<br> <br>
// Don't allow UIDs to be regenerated at this point.<br> //<br> dicomIO->SetKeepOriginalUID( true ); // assumes you have changed meta data to the UID you wish to use.<br> <br> typedef itk::ImageFileWriter< ImageType2D> WriterType;<br> WriterType::Pointer dcmWriter = WriterType::New();<br> dcmWriter->SetImageIO( dicomIO );<br><br>Todd Jensen<br><br></div></div><br></div></div></body></html>