dcmtk on iPhone ??

All other questions regarding DCMTK

Moderator: Moderator Team

Message
Author
francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#31 Post by francois »

A simple "Reveal in finder" for a library can help you.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#32 Post by ali.m.habib »

francois wrote:A simple "Reveal in finder" for a library can help you.
I built the libraries very well,

but when set the active directory to instal, and rebuid it raise the following error


file INSTALL cannot find "/dcmtk-3.6.0/xcode/dcmdata/apps/Debug/dcm2pdf".
Call Stack (most recent call first):


dcmdata/cmake_install.cmake:34 (INCLUDE)


cmake_install.cmake:50 (INCLUDE)


make: *** [install_buildpart_0] Error 1


Command /bin/sh failed with exit code 2



do you have any suggestion to fix that

-- I solved that by copying them manualy

I tried to create sample examples but it gave me error could u check the following linke viewtopic.php?t=2847

can I send the complete objective- c to the forum

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#33 Post by francois »

dcm2pdf is a executable,you don't need to compile it, remove it in your targets.

but if it's the case, what library have you this error?

For your example, think to link at your project the good library with the good architecture, don't forget IOS use "arm" for device and "I386" for simulator.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#34 Post by ali.m.habib »

francois wrote:dcm2pdf is a executable,you don't need to compile it, remove it in your targets.

but if it's the case, what library have you this error?

For your example, think to link at your project the good library with the good architecture, don't forget IOS use "arm" for device and "I386" for simulator.
I added all the libraries and I told the project to add refrence to it , is this the link you talk about ,

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#35 Post by francois »

Do you compile dcmtk for IOS simulator and test the libs for the device?

The libs are not universal binary.

ali.m.habib
Posts: 85
Joined: Sun, 2010-12-26, 17:34

#36 Post by ali.m.habib »

francois wrote:Do you compile dcmtk for IOS simulator and test the libs for the device?

The libs are not universal binary.
the output libraries , is *.a files

rick
Posts: 8
Joined: Fri, 2011-01-28, 17:31

#37 Post by rick »

@ali - it sounds like you have exactly the same issues as I have. I have managed to compile the DCMTK LIB in xcode and it runs without errors when the base SDK is set to the latest mac OSX. However, once the base sdk is changed to the latest iOS sdk (4.2) it throws the errors of missing the dreaded libc.h file. Like you I cannot find it. Did you have any luck solving the problem and get any further of actually getting an app to display a .dcm image? ..... if only there was a demo source code so I can learn from it lol

@francois - thank you for all the useful posts (please keep them coming)

Regards,

Rick.

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#38 Post by francois »

rick wrote:it throws the errors of missing the dreaded libc.h
Comment the line :twisted:

To show Dcm files use OpenGLEs, it's work fine.

Dcm file is a simple texture on a simple surface.

rick
Posts: 8
Joined: Fri, 2011-01-28, 17:31

#39 Post by rick »

Excuse my lack of knowledge... OpenGLEs ? :oops:

I will add this to the list of things to also look up :D

Rick.

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#40 Post by francois »

OpenGL ES

It's opengl for embedded devices.

To read

http://www.khronos.org/opengles/

http://en.wikipedia.org/wiki/OpenGL_ES

rick
Posts: 8
Joined: Fri, 2011-01-28, 17:31

Thanks!

#41 Post by rick »

@Francois

Thanks for the links.... So am I right in thinking using OpenGLEs will display a DICOM image and I don't need additional libraries to just display a simple image in a UIimageviewer? I just need a basic app to display a DICOM image and am starting to get very confused :?

Thanks for all your help.

Rick

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

Re: Thanks!

#42 Post by francois »

rick wrote:@Francois

Thanks for the links.... So am I right in thinking using OpenGLEs will display a DICOM image and I don't need additional libraries to just display a simple image in a UIimageviewer?
I already try to use UIimageviewer without success (not good color/size).
When you read a dicom file, you get rawData with a particular format (8 bits, gray).

Apparently, IOS API doesn't managed perfectly this format (or it's my bad)

So, Yes, using openglES works.
rick wrote: I just need a basic app to display a DICOM image and am starting to get very confused :?
I worked long time to show a simple dicom file, so i will try to help you.

rick
Posts: 8
Joined: Fri, 2011-01-28, 17:31

#43 Post by rick »

Dear Francois,

I am glad someone else had no success with UIimageviewer to display a DICOM image :-)

I have been playing around with the OpenGLes all weekend - I particularly like the GLImageProcessing sample code - if I could get a Dicom showing in this format it is exactly what I am aiming to do. The current DICOM viewers available on the iphone / iPad are far to complicated for what I need. My job would be made a lot easier if I could just view my own DCIOM's without being logged into a PACS server. Oh, what fun it is to be a beginner programmer!! lol

Pointers in the right direction are always welcome.

Kindest regards & keep up the good work on the skuld project!!

Rick.

francois
Posts: 10
Joined: Sat, 2011-02-19, 15:30
Location: France
Contact:

#44 Post by francois »

It's not so complicated.

When you read a dicom file, you can get rawData (in 8 bits) of the picture.

So, with that, you can use the data like a texture for openGles.

Create a simple surface and put the picture/texture on the surface.

rick
Posts: 8
Joined: Fri, 2011-01-28, 17:31

where to turn!

#45 Post by rick »

OK.... I have spent a further week researching and playing around with textures etc....

re:

http://iphonedevelopment.blogspot.com/2 ... -6_25.html


Does anyone have some sample source code that I can play around with -this is driving me nuts!!

I have tried Papyrus, DCTMK and OpenGLes - have I missed anything!?!

rick

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest