Unanswered Questions
From DicomObjectsWiki
If you wish to add a question or issue to this page, please create a new section with a title using ==title==. Could those answering any such questions, please post replies within the same section, indenting replies (by starting lines with a : )
If your question has "disappeared" from this page, then it means it has been moved to Answered Questions (answered questions will remain on here for a week or so to allow for follow-ups).
Contents |
How to crop rotated/flipped images?
Your cropping code in the VB6 viewer example doesn't seem to work correctly for rotated/flipped images (I use VB6 for development). E.g. I rotate some image clockwise, then crop it but the cropped image seems to be based on wrong coordinates. So, for example if correct code for cropping image with normal rotation is something like:
Set CroppedImage = DicomViewer1.Images(img_number).SubImage(CropLabel.Left, CropLabel.Top, CropLabel.Width, CropLabel.Height, czoom, 1)
what would be the correct code for image with clockwise rotation? In wiki there is an example for moving labels in case of rotating/flipping but it doesn't help.
ANSWER
Rotate/Flip or any other Display changes to a DicomImage will NOT modify the underlying pixel data, therefore you need to apply the Same Flip/Rotate to the cropped image. What do you mean by "it doesn't help"? Is the code wrong or what?
How to add labels to cropped rotated/flipped images?
Also, if we succeed in cropping rotated/flipped images, and if these rotated/flipped images have labels (for example measurements) how do we correctly position these same labels on the cropped image?
ANSWER
This is the page which shows the code for moving the labels after image has been flipped/rotated.
http://www.medicalconnections.co.uk/wiki/Move_DicomLabel_when_Image_is_Flipped/Rotated
If you still have problems with this issue, send us a small program in your preferred language and we will modify it to make it working for you.
Support email: Qian@MedicalConnections.co.uk
Use of DicomConnection BytesSent and BytesReceived property
If transmitting a single image the BytesSent property appears to jump immediately to the size of the single image, and then increments during the transmission about 3 to 7 thousand bytes more. What should I be seeing here? I would assume the BytesSent would start at zero and increment to file size.
