Search found 6 matches

by yuanshl
Sun, 2008-06-08, 13:35
Forum: DCMTK - General
Topic: calculate the center and window
Replies: 2
Views: 3376

thank you, i have fixed that problem :lol:
by yuanshl
Sat, 2008-06-07, 17:27
Forum: DCMTK - General
Topic: image processing not work
Replies: 3
Views: 3916

Thank you for reply

thank you, i 'm trying to do some image processing like sharpen,smooth etc.., but i found that the class DicomImage does not have a method to do what i want. so i try to get the pixel data of the image, process it, then put it back to the image and display it. until now, i can use the DicomImage cla...
by yuanshl
Mon, 2008-05-26, 03:06
Forum: DCMTK - General
Topic: image processing not work
Replies: 3
Views: 3916

image processing not work

Hi, i use this function to do with the pixel data,but it's not working! Is there a better way? help me please //image is a DicomImage object,which was created when i open an image; void CDcmMFCTestDlg::OnButtonProcessing() { if (image->getStatus() == EIS_Normal) { if (image->isMonochrome()) { image-...
by yuanshl
Fri, 2008-05-23, 18:16
Forum: DCMTK - General
Topic: calculate the center and window
Replies: 2
Views: 3376

calculate the center and window

I don't know how much should i set the center and window just like other dicom view software,i' m new to mfc,please help me:it works bad..... if (nFlags == MK_RBUTTON ) { CPoint pointShift = point - m_pointRightStart; // this is the shift value if(pointShift.x) { center += 100; //how much should i s...
by yuanshl
Fri, 2008-05-23, 13:55
Forum: DCMTK - General
Topic: how to display when i use createwindowsdib() in MFC
Replies: 3
Views: 6605

Thank you very very much! it works very well! but why can't i use this code?: image->createWindowsDIB(m_pImageDIB,width*height,0,8,1,1); BITMAPINFO* pDIBInfo = (BITMAPINFO*) m_pImageDIB; BYTE *pDIBData = (byte*)m_pImageDIB + sizeof (BITMAPINFOHEADER) + 256*sizeof(RGBQUAD); CxImage *img= new CxImage(...
by yuanshl
Fri, 2008-05-23, 02:35
Forum: DCMTK - General
Topic: how to display when i use createwindowsdib() in MFC
Replies: 3
Views: 6605

how to display when i use createwindowsdib() in MFC

HI, i was confused for a long time on how to display a dicom image.
when i use createwindowsdib() to create a dib,but how can i display the dib object?(I use VC++6.0)
please help me,thank you!