I'm developing an application that displays DICOM Images and also does Multi Planar Reconstruction, that works just fine, now, I'm going into 3D now (Skin).
What would be the best alternative? I've read about VTK but I'm not pretty sure, is there some examples out there I can reference?
This is the open source code you need:
http://www.codeproject.com/Articles/466955/Medical-image-visualization-using-WPF
I think what you are looking for is this [leadtools] (http://www.leadtools.com/sdk/medical/dicom.htm)
Related
I want to create my own Google Map like this:
My problem is that I can't load and edit my large images.
My Images:
PNG / JPG
700 MiB
300000px x 300000px
My attempts:
ImageMagick
.NET C# / BitmapImages ...
C++ / OpenCV
general image classes in Java and Python
With which language / library I can edit these big images.
I help maintain libvips, an image processing library designed to work with very large images. It's free and works on Linux, Mac and Windows. You can use it from the command-line, C#, C/C++, Python, Ruby and others.
You can make your google maps tiles from the command-line like this:
vips dzsave hugefile.tif myoutputdir --layout google
Or from Python (for example) like this:
import pyvips
image = pyvips.Image.new_from_file("somehugefile.tif", access="sequential")
image.dzsave("filename/of/pyramid", layout="google")
And it'll scan your huge tiff image and generate all the tiles. It's fast, it needs little memory and it'll work on images of any size. I regularly make 200,000 x 200,000 deepzoom images from microscope slides using my small laptop.
There's a chapter in the libvips docs introducing dzsave and explaining how to use it.
This is not a full answer, but I need a little more space than a comment can give.
Take a look at the large image support section on the ImageMagick or the discussion board.
This answer mentions the VIPS package which might be helpful.
You might also consider posting in photography stackexchange, or even blender stackexchange - for example I saw this answer which mentions writing individual image tiles - also here, although that question is about rendering. Blender is not specifically for image processing and editing, but it's pretty amazing and flexible and has a very active and supportive community. You can use python within Blender as well.
You could also think of asking in gis stackexchange.
When you post in the other stackexchanges, take a look around first and make sure you write your question so that it does not look too off-topic for that site.
Good luck - it seems tiling is everywhere!
Can the Collada (dae) file format be used for content, or is it strictly for reciprocity between 3D studios, etc? For example, I create a XNA game, could I create a loader and load it in for usage in my game? Would it be wise and legal to do this? Or can I only use it to transfer between Maya and 3D Max?
Collada is a perfectly acceptable format to use with XNA. Benjamin Nitschke has created an excellent tutorial on loading a Skinned Collada model with all of the necessary loader classes etc. on his website. The source code is at the end of the article along with some other useful links.
You can definitely use it as the main format for your game.
Many systems support directly loading COLLADA:
Second Life Mesh
Ogre
GLGE
three.js
and many more.
If you're using C#, there is a C# Collada library.
I want to crop pdf by given coordinates using c#.
How can I do it? What are API/Libraries I can use? (Doesn't matter commercial or not but I can't spent lot)
PDF4NET has the option to crop pages by manipulating directly the page's CropBox or by extracting the page content and cropping it using a clip region.
Disclaimer: I work for the company that develops PDF4NET.
I don't know if it can do exactly what you want, but PDFsharp is a free and open source library for creating PDF files in .NET. I can recommend it.
iTextSharp http://sourceforge.net/projects/itextsharp/ is one that I've used before that I am pretty sure will do what you need. Will find some source code later if I have time.
hi
I am developing a video capture application using C#.net. i captured
video through webcam and saved it as a JPEG images then i want to make a
wmv file with those images. how can i do that what are the basic steps needed for that can any body help
I am working on this myself. I have found two ways that may be possible - both require the purchase of an outside library.
The first one looks to be the easiest but costs the most, although it will allow you to use it for free you will just have to deal with a pop up telling you to purchase the library: http://bytescout.com/products/developer/imagetovideosdk/imagetovideosdk_convert_jpg_to_video.html
The other involves using Microsoft Encoder 4. I am still working on this one. You can get the free version here: http://www.microsoft.com/download/en/details.aspx?id=18974
C# doesn't natively support much in the way of sound or video so outside reference assemblies seem to be a necessity.
Right now that is the best help I can offer until I figure it out.
I have created a TIFF image from several lines of text, and it's quite large at 300DPI. The image itself looks pretty good. The font is set as followings when drawing the string to the image:
drawing.SmoothingMode = SmoothingMode.Default;
drawing.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SystemDefault;
When I print the image, the text comes out fuzzy (I'm printing to a low-rez printer). But, if I take the exact same image and print it from Paint.NET, it prints beautifully. The difference is that when I hit Print in Paint.NET, it asks me if it should sharpen the image for printing -- when I say yes, that's when it works.
My question is what the heck is Paint.NET doing to sharpen the image and how do I mimic that? I will post some code later tonight to assist with an answer, if anyone has an answer.
Thanks!!
There is a .NET C# library called AForge.NET. It has many components and one of these components is an imaging library that does, indeed, have a sharpen filter (among many other types of filter). You can download the library here: http://code.google.com/p/aforge/
And if you need help on how to use it, look here: http://www.codeproject.com/KB/GDI-plus/Image_Processing_Lab.aspx