ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 RLE encoding for DICOM images

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
yeohray2 Posted - Nov 08 2022 : 03:52:26
After saving DICOM images using RLE encoding, I sometimes cannot display those saved images in ImageEn.

The issue with my saved images is that RLE stream size for the RLE high bytes is larger compared to the RLE stream size for the low bytes. Thus, when reading the low bytes, the existing check:

if imageLength div 2 + Stream.Position > Stream.Size then
begin
Progress.Aborting^ := true;
exit;
end;

will always trigger.

Is it safe to change the check to this instead, which takes into account the bytes already read for the RLE high bytes?

if Stream.Position + (ImageLength - Stream.Position + base + idxArray[0] ) > Stream.Size ...

Thanks.

Ray


3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Nov 14 2022 : 21:55:19
Please email me for a fix for this.

Nigel
Xequte Software
www.imageen.com
yeohray2 Posted - Nov 10 2022 : 19:24:25
Hi Nigel,

I've sent the files to you via email, as I cannot share the images publicly. Thanks.

Ray
xequte Posted - Nov 10 2022 : 14:44:22
Hi Ray

Can you email us your sample files and the steps to reproduce this?

Nigel
Xequte Software
www.imageen.com