<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Luis, thanks for your precious advise.<br><br>I'll do it (save image in png) to be sure to work with good precision in the pixel value.<br><br>Regards,<br><br>Daniela<br><br><br>-----------------------------------------------------------------------------------------------------------------------<br>> Date: Tue, 25 May 2010 11:21:12 -0400<br>> Subject: Re: [Insight-users] DicomSeriesReadImageWrite2_Problem to read         dcmSeries<br>> From: luis.ibanez@kitware.com<br>> To: danysunflower@hotmail.it<br>> CC: insight-users@itk.org<br>> <br>> Hi Daniela,<br>> <br>> Thanks for the clarification.<br>> <br>> The methods that you uncovered seems<br>> to be a good way to fix this problem.<br>> <br>> The only concern may be that while saving<br>> the images in JPEG, you may have lost a<br>> some precision in the pixel values (since<br>> JPEG compression is lossy.)<br>> <br>> If keeping image precision is critical for your<br>> application, you may want to save the images<br>> in a lossless format (e.g. png) and still do the<br>> same trick in ITK to read the series of slices.<br>> <br>> <br>> Regards,<br>> <br>> <br>> Luis<br>> <br>> <br>> ----------------------------------------------------------------------<br>> On Tue, May 25, 2010 at 4:14 AM, Daniela Sacchetto<br>> <danysunflower@hotmail.it> wrote:<br>> > Hi Luis,<br>> > Thanks a lot for your interest to my problems.<br>> ><br>> > My images have an independent series ID because I save them whit Matlab<br>> > dicomwrite().....<br>> > I think that I could solve my problem writing the DICOM header of every<br>> > image modifying the opportune fields, can I?<br>> > Nevertheless yesterday morning I solved it following an other way: I saved<br>> > my slice as .jpg (Matlab saveas()) and then I used ImageSeriesReadWrite to<br>> > have the 3D DICOM volume (including in a second time the DICOM header that I<br>> > saved before in Matlab...).<br>> ><br>> > If you have some advise for me, I'm happy to learn new things<br>> > Regards<br>> > Daniela<br>> ><br>> >> Date: Mon, 24 May 2010 13:08:41 -0400<br>> >> Subject: Re: [Insight-users] DicomSeriesReadImageWrite2_Problem to read<br>> >> dcmSeries<br>> >> From: luis.ibanez@kitware.com<br>> >> To: danysunflower@hotmail.it<br>> >> CC: insight-users@itk.org<br>> >><br>> >> Hi Daniela,<br>> >><br>> >> ITK will only group your DICOM slices if they belong<br>> >> to the same Series.<br>> >><br>> >> It general, it would be incorrect to group together two<br>> >> or more DICOM images from different series.<br>> >><br>> >> Can you please explain why is that each one of your<br>> >> slices has an independent series ID ?<br>> >><br>> >><br>> >> Thanks,<br>> >><br>> >><br>> >> Luis<br>> >><br>> >><br>> >><br>> >><br>> >> ------------------------------------------<br>> >> On Wed, May 19, 2010 at 5:59 AM, Daniela Sacchetto<br>> >> <danysunflower@hotmail.it> wrote:<br>> >> > Hi everyone!<br>> >> ><br>> >> > I've a problem with DicomSeriesReadImageWrite2.<br>> >> > I've to read 98 .dcm US images and then save them as an only .dcm 3D<br>> >> > image....<br>> >> > I'm trying to use DicomSeriesReadImageWrite2 but I've a strange result:<br>> >> > my<br>> >> > output image is made by only a frame!!!<br>> >> ><br>> >> > I think that my program read every .dcm image as a DicomSeries and so it<br>> >> > works only with the first...<br>> >> ><br>> >> > In fact the output on my code is:<br>> >> ><br>> >> > ---------------------------------------------------------------------------------------<br>> >> > The directory:<br>> >> ><br>> >> > ./ImagesSeries/<br>> >> ><br>> >> > Contains the following DICOM Series:<br>> >> ><br>> >> > 1.3.6.1.4.1.9590.100.1.1.10361484212757612641150690902115007521221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.104958578313032336937390375850004964647.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.107405759313013746441001957330139037556.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.111061796311836621214237815451365526665.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.111371510912184596024463174462076619397.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.114003144113582087342408426350632299768.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.115069668012691176838860860252871104986.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.115863632711534221931101822980911990082.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.117210875213699775925905320144009158488.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.119305551712024551424636647733186827561.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.124756438512135209838077715403133762381.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.127100014912702946822219170800611195259.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.130904613712586655706082561633711854708.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.132789141911144680733439794193524860925.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.135448922813903449706317500221925740393.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.140381627611042300039716387174096495155.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.144532218413535004936604791574275013149.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.157221514712861930036266622811496897297.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.160223257112208121623193527622719890831.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.160403179611467061711348435733606596103.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.172713343612953281742615330863275523053.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.175656151313701326233705860102033370194.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.178274724111426279710183141672223558981.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.180637138611113043422500405051890976544.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.186730282911486077401357512971164367217.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.192259075012690719635674136851855041374.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.192304153912250864228390368121983284957.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.193484500413409104135181974303210120179.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.19483900012924771942041919211865262431221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.195657872811850247602202149461524783890.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.201049653713350628538356901603932718942.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.205015200010636842101619262860733417343.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.205613602911200829614883654510244679940.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.20800626711899110105604105073231958255221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.20872103812615579508486015223976135878221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.21351735211271066209877047511394413712221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.21680937212595594016257117591281029470221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.224333664511635846134767287320129334367.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.233908953312421664220188089821972073086.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.234209099110527561139912938521609936297.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.23802820312794295127113987993421697158221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.242833846613601180335659779954189495520.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.253032502011790636131304298292828389497.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.255281180411326795728207781183439084004.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.255989415911509155724838153234090034564.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.256703548713845188826113524501483688262.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.261066150512413035806047720024185285532.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.261923240410862384217601248181510658931.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.268721950512337394906243140334041866289.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.27002773911574612438101769393252839446221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.271581633012520598328179585500147639169.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.275217719912817877728213459731407722928.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.277517900612931292311799848252902738566.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.284480680412612910037758074081229817663.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.286439761413969307524261925414149551332.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.291305712911989507105097837000895920840.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.292869497411583926927243992940115011216.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.294272493213528938332167299922951678306.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.295432048011872899929460473813532438228.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.296186631012571024433067314041707054768.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.301593916812146160820025722003626446068.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.308036880011475464222555219482749565972.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.309762793512585698333933743481155409607.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.31537236411798195029682792212183975425221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.316724547212924806432666494890264926722.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.321890438512454846731899933613141156877.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.32608800911307637908833860023208140871221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.332825116910498149003315061000401502685.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.336289553512762651720507229901428345498.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.336498562011885684504085922651903352995.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.346951755412774716126274441202286286506.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.350189582912575955717799599530933104099.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.36458300412833472603234234072687996430221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.365342754013142409717392864100025245812.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.367343886412836272303768116671237967763.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.371453199410330370402071443502446155721.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.376711282912854756030326803280901027039.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.377409676713311240436009094542889703106.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.389316412613417667100401875470402172002.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.39465802511786504535533684932439600436221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.395125695510859653039905120523042226302.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.398528795512731655934044154101725060478.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.410277870513038087706950595972147283218.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.412045646513052985524670655310954839349.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.416208511312424332830102614362027638482.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.42342430811558317805782007453092171394221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.426127881212301683408269948334199655738.221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.49241483711184470737460394433295304743221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.49455742810565594637753660210668519682221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.51443036613822244201683465584071455387221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.51826236110766102523378438471747952106221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.54586938712268267527783315552319051980221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.55004693210536392229810791901280914507221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.56593996213466745216522111193927304370221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.60877224411871371822157485202711878743221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.64322360612199230734233860122330178898221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.66401018112950258816371047714219464939221242<br>> >> > 1.3.6.1.4.1.9590.100.1.1.89578728812936033115031064410795050582221242<br>> >> ><br>> >> ><br>> >> > Now reading series:<br>> >> ><br>> >> > 1.3.6.1.4.1.9590.100.1.1.10361484212757612641150690902115007521221242<br>> >> ><br>> >> ><br>> >> > Writing the image as<br>> >> ><br>> >> > out2.dcm<br>> >> ><br>> >> > ---------------------------------------------------------------------------------------------------------------<br>> >> ><br>> >> > How can I say to my program that all the 98 dcm image are ''my series''?<br>> >> > I saved the 98 frames in a new fold ''ImagesSeries'' and I pass that<br>> >> > directory to my program....<br>> >> ><br>> >> ><br>> >> > Thanks everyone<br>> >> > Daniela<br>> >> ><br>> >> ><br>> >> > ________________________________<br>> >> > Messenger Radio. La radio che si fa cliccare!<br>> >> > _____________________________________<br>> >> > Powered by www.kitware.com<br>> >> ><br>> >> > Visit other Kitware open-source projects at<br>> >> > http://www.kitware.com/opensource/opensource.html<br>> >> ><br>> >> > Kitware offers ITK Training Courses, for more information visit:<br>> >> > http://www.kitware.com/products/protraining.html<br>> >> ><br>> >> > Please keep messages on-topic and check the ITK FAQ at:<br>> >> > http://www.itk.org/Wiki/ITK_FAQ<br>> >> ><br>> >> > Follow this link to subscribe/unsubscribe:<br>> >> > http://www.itk.org/mailman/listinfo/insight-users<br>> >> ><br>> >> ><br>> ><br>> > ________________________________<br>> > Avatar per Messenger e sfondo per il PC Creali gratis!<br>                                            <br /><hr />Un mondo di personalizzazioni <a href='http://www.pimpit.it/' target='_new'>per Messenger, PC e cellulare</a></body>
</html>