简体   繁体   中英

EvilDicom problems in using VoxelGrid

I'm trying to implement this example .

DicomFile df;  
VoxelGrid vt ;    
if (openFileDialog1.ShowDialog () == DialogResult.OK)    
{    
    df = new DicomFile (openFileDialog1.FileName);    
    vt = new VoxelGrid (df);    
    pictureBox1.Image = vt.getImage();   
}

The problem is that it does not find the component VoxelGrid in your dll (EvilDicom), there are only a component called Voxel and does not work as the tutorial is asking, is there any version change EvilDicom 0,04 or need to use another component to add the image in my pictureBox ?

In the more recent Evil DICOM releases, such as 0.05.7 , there is an ImageMatrix class that can be used to retrieve image bitmap data from a DICOM file.

You should be able to change your example to the following to sufficiently upload images to your picture box:

if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
    var imgFile = new ImageMatrix(openFileDialog1.FileName);
    pictureBox1.Image = imgFile.GetImage(0);
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM