[Insight-users] Re: what's the problem xith my code : Active Shape
Model
Luis Ibanez
luis.ibanez at kitware.com
Mon Nov 26 23:03:12 EST 2007
Hi Amine,
Thanks for your patience in tracking this issue.
It seems indeed that what you were encountering was
a bug in the BMPImageIO class.
This bug was reported by jiafucang1 on March 2007:
http://public.kitware.com/Bug/view.php?id=4713
He also kindly provided a fix for the bug,
and this fix was committed on April 2nd 2007:
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/IO/itkBMPImageIO.cxx?root=Insight&sortby=date&r2=1.20&r1=1.19
As you pointed out, replacing ITK 3.0 with ITK 3.4 will solve
the problem, since you will get the version of the source code
that already contains this fix.
Regards,
Luis
--------------------
amine kabous wrote:
> Hi Luis,
> I'm sorry, the massage is well: BMPImageIO could not open 000.bmp for
> reading. but I have just used the latest version of itk and that does
> not pose any more a problem in the seriesReader->Update().
> thank you very much for all that you made it is really very nice. and if
> I would have other problems I will send you a new mails.
>
> KABOUS Amine
> 1ere Master Informatique et Gestion
> Faculté polytechnique de Mons
> ------------------------------------------------------------------------
> > Date: Mon, 26 Nov 2007 22:29:18 -0500
> > From: luis.ibanez at kitware.com
> > To: aminek86 at hotmail.com
> > Subject: Re: what's the problem xith my code : Active Shape Model
> >
> > Hi Amine,
> >
> > Did you actually put the filename as "00.bm" ???
> >
> > Shouldn't it be "000.bmp" ?
> >
> >
> > Please be *very precise* when you describe the error messages.
> >
> >
> > Luis
> >
> >
> > ------------------
> > amine kabous wrote:
> > >
> > > Hi Luis,
> > >
> > > I always obtain the same message : "BMPImageIO could not open 00.bm
> for
> > > reading".
> > > it not may be that is because of the ITK version, I use itk-3.0.1.
> > > I join my CMakeLists too.
> > >
> > >
> > > KABOUS Amine
> > > 1er Master Informatique et Gestion
> > > Faculté polytechnique de Mons
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > > Date: Mon, 26 Nov 2007 21:29:57 -0500
> > > > From: luis.ibanez at kitware.com
> > > > To: aminek86 at hotmail.com
> > > > Subject: Re: what's the problem xith my code : Active Shape Model
> > > >
> > > >
> > > > Hi Amine,
> > > >
> > > > Yes, that's what I wanted to see.
> > > >
> > > > The file looks fine.
> > > >
> > > > I'm wondering if you are dealing with some permissions issues.
> > > >
> > > > The file belongs to "Administrateurs". It might be that
> > > > Windows Vista is running your program under an ownership that
> > > > doesn't give you read access to these files in the C:\ directory.
> > > >
> > > > Please try the following:
> > > >
> > > > 1) copy the .bmp files to the same directory where you have the
> > > > project.exe file:
> > > >
> > > > C:\Users\amine\Desktop\project\debug
> > > >
> > > > 2) Change your code to have
> > > >
> > > > nameGenerator->SetSeriesFormat( "%03d.bmp" );
> > > > nameGenerator->SetStartIndex( 0 );
> > > > nameGenerator->SetEndIndex( 9 );
> > > > nameGenerator->SetIncrementIndex( 1 );
> > > >
> > > > 3) recompile your program
> > > >
> > > > 4) open again the MS-DOS command window
> > > >
> > > > 5) go to the directory: C:\Users\amine\Desktop\project\debug
> > > >
> > > > 6) run again project.exe
> > > >
> > > > 7) Let me know what you get.
> > > >
> > > >
> > > >
> > > > Thanks
> > > >
> > > >
> > > > Luis
> > > >
> > > >
> > > > -------------------
> > > > amine kabous wrote:
> > > > > Hi Luis,
> > > > > I espere that it is what you me had asked.
> > > > >
> > > > > KABOUS Amine
> > > > > 1er Master Informatique et Gestion
> > > > > Faculté polytechnique de Mons
> > > > >
> > > > >
> > > > >
> > >
> ------------------------------------------------------------------------
> > > > >
> > > > > > Date: Mon, 26 Nov 2007 20:52:59 -0500
> > > > > > From: luis.ibanez at kitware.com
> > > > > > To: aminek86 at hotmail.com
> > > > > > Subject: Re: what's the problem xith my code : Active Shape Model
> > > > > >
> > > > > > Hi Amine,
> > > > > >
> > > > > > Please send me a screen shot of the file explorer
> > > > > > showing your image 000.bmp at the level of the C:\
> > > > > > directory.
> > > > > >
> > > > > > Just the window that is labeled "Disque local C:".
> > > > > >
> > > > > > I would like to see the file permissions on that image.
> > > > > >
> > > > > > Use the option of "View" "Details" on the file explorer
> > > > > > of Windows Vista before you take the screenshot.
> > > > > >
> > > > > >
> > > > > > Thanks
> > > > > >
> > > > > >
> > > > > > Luis
> > > > > >
> > > > > >
> > > > >
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > > Téléchargez le nouveau Windows Live Messenger ! Essayez-le !
> > > <http://get.live.com/messenger/overview>
> > >
> > >
> > >
> ------------------------------------------------------------------------
> > >
> > > # This project is designed to be built outside the Insight source tree.
> > > PROJECT(projet)
> > >
> > > # Find ITK.
> > > FIND_PACKAGE(ITK REQUIRED)
> > > IF(ITK_FOUND)
> > > INCLUDE(${ITK_USE_FILE})
> > > ENDIF(ITK_FOUND)
> > >
> > > ADD_EXECUTABLE(projet projet.cxx )
> > >
> > > TARGET_LINK_LIBRARIES(projet ITKCommon ITKIO)
> > > INCLUDE_DIRECTORIES(
> > > ${ITK_SOURCE_DIR}/Code/Patented
> > > # Any other directory you might need
> > > )
> > >
> > > LINK_DIRECTORIES(
> > > ${ITK_BINARY_DIR}/Code/Patented
> > > # Any other directory you might need
> > > )
>
More information about the Insight-users
mailing list