Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Saturday, November 4, 2006 12:10:52 AM(UTC)

Sham  
Sham

Groups: Registered
Posts: 7


Hi,

I am using dotnet v 2.0 and leadtools eval v14.5.0.13.

Can anyone tell me how to skip first few pages while loading multipage images in the RasterThumbnailBrowser?

Thanks,

Sham.

 

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Sunday, November 5, 2006 3:45:13 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

There is no direct way to do this.  There are two possible workarounds:


1) After the entire file is loaded, delete the thumbnails you don't want by using the RasterThumbnailBrowser.Items.Remove method.


2) Add a handler for the LoadThumbnail event which occurs before each
image is inserted into the image list.  Whenever you want to discard an image, set e.Cancel to true and call Items.Remove.

 
#3 Posted : Sunday, November 5, 2006 7:26:46 PM(UTC)

Sham  
Sham

Groups: Registered
Posts: 7


Sorry, i should have put the question properly.

Am trying to load the dicom images in the thumbnail browser. Some dicom images comes with first page/frame as blank. So when this image is loaded thumbnail browser displays blank page. My question was how to avoid this blank page.

 
#4 Posted : Monday, November 6, 2006 4:48:45 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

Your explanation in the first post was clear enough.  I understood
that you want to tell the thumbnail browser not to load the first page
of the file which is blank.  If this is what you want to do then the two approaches above will help you do that.

 
#5 Posted : Monday, November 6, 2006 9:18:17 PM(UTC)

Sham  
Sham

Groups: Registered
Posts: 7


Let me explain like this,

Each Dicom file has multiple pages/Frames in it. It varies by approx 30 to 200 pages/frames per dicom file.

Now lets say my image dir has 6 dicom files in it. RasterThumbnailbrowser picks up the first frame from each dicom file and displays it. So i get 6 images listed in the thumbnail browser. Sometimes the first image/frame in the dicom file is left blank, then a blank image is displayed in the browser. The 2 methods you had mentioned above removes the image itself from the browser list. This, i don't want to happen.

If the first page/frame in the dicom file is blank, then i have to skip the blank frame and display the next one from the same dicom file.

 

 
#6 Posted : Tuesday, November 7, 2006 4:59:36 AM(UTC)

Bashar  
Guest

Groups: Guests
Posts: 3,028

Was thanked: 2 time(s) in 2 post(s)

Try the following:


 In the LoadThumbnail event, check the Image member of the
RasterThumbnailBrowserLoadThumbnailEventArgs parameter.  If it is
not blank, do nothing.  Otherwise, load the second page of the
file (the file name is in the FileName member) into the Image member and that page will be the one added to the list.


Now, the problem of determining whether an image is blank or not is
another problem.  The simplest way is to count the number of
colors using the ColorCountCommand class.  If the count is 1, the
image is blank.  Otherwise, it isn't.  However, this method
will not work if the image came from a scanner and might contain some
noise.  Since you are dealing with medical images, I am assuming that this is probably not the case.

 
#7 Posted : Wednesday, November 8, 2006 1:40:08 AM(UTC)

sharath  
sharath

Groups: Registered
Posts: 15


Thanks, Let me try that one

 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.065 seconds.