I'm using VTK API in my C# application. Please can someone explain how to convert my image series which is in .jpeg format to .vti image file to be able to use it in my application? The image series contains sequential abdomen images. Quick reply will be most appropriated. Thanks in advance!
You can read each image in the series using:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/JPEGReader
Then, you could combine them into a 3D image manually:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData
Or more automatically with:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/CombiningRGBChannels
Related
I want to do some image processing using EMGU and visualize the result
in a Winform application. So after the image processing I have to convert the CV.MAT into System.drawing.image to make it work with winform.
How do I achieve it?
I find out how to do it.
mat.ToImage<Bgr,Byte>().ToBitmap();
I have a grayscale TIFF raw image.
I would like to display it in picturebox and then do some manipulation with AForge.Net.
I wonder what is the best practice for this.
I could not display the image - I either get black "picturebox"
getting error "outofmemory" when trying to convert to grayscale.
getting error unsupported format in AForge
and more..
any help would be welcome.
Have a look here
An article on how to use GDI+ methods for displaying 16-bit raw images
http://www.codeproject.com/Articles/31581/Displaying-bit-Images-Using-C
Have a look here
C# - Converting 8-bit or 16-bit grayscale raw pixel data
It gives you an example code for converting the image.
I want to convert 2 images into a single pdf file.One image is big in size and small image on the top of the big image.
So In generated pdf also I need to show the small image on the top of the big image and also in the same position where it is in case of image.
I use pdfSharp to convert image to pdf.It will convert the images into pdf file but not able to position the second image on the top of the first image.
Can any one help me on that.Thanks in advance.
Check out the sample below and see if it's what you need:
http://pdfsharp.com/PDFsharp/index.php?option=com_content&task=view&id=34&Itemid=45
I am working on an Image manipulation application which will be developed using Flash/ C#.Net. Is this possible to save the image manipulations (not the image) saved from Adobe Lightroom for a specific image & then merge these change sets with an image to make a new image using C#.Net?
Also, the application for image manipulation will be developed in the Flash/ Action Script. Please share some links as to how we can save the image manipulations for an image (not the image) so that it can be merged with an image later on.
Kindly suggest some links.
Just store a list of commands e.g.
1 -> rotate on 90 degree
2 -> move 10px. left
....
I need to modify the vertical and horizontal resolutions without changing the image dimensions.
Check out the Bitmap.SetResolution Method.
If all you have is GDI, have a look at this link.
You can save the Bitmap to a JPEG file using this snippet:
bmp.Save("picture.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
The resolution is contained in EXIF tags within the JPEG file.
Here's one article that gives source code for doing similar things in C#:
http://www.codeproject.com/KB/graphics/EXIF_tag_Editor.aspx