[Insight-users] DicomSeriesReadImageWrite2_Problem to read dcmSeries

Daniela Sacchetto danysunflower at hotmail.it
Tue May 25 11:30:42 EDT 2010


Luis, thanks for your precious advise.

I'll do it (save image in png) to be sure to work with good precision in the pixel value.

Regards,

Daniela


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


More information about the Insight-users mailing list