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 : Thursday, April 24, 2008 9:25:27 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Hello.

I Use VB.Net 2005 and LEADTOOLS V15 Pro

I get a RAW type image from MATROX frame grabber

Image information :
 - Size : 3000 * 3000
 - DPI : 170 * 170
 - Bit per pixel : 16
 - Type : Unsigned
 - order : gray
 - LSB : enable

I will attached a screen shot image

The image is displayed correctly on th PHOTOSHOP
but when use leadtool demo, not correctly.
(raster image pro\VB.net classlibrary\VB.Net Main 32-bit Demo)

I don't know what problem is.
I need your help.

Thank you.

Neo.Ko attached the following image(s):
grayscale.JPG
 

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 : Thursday, April 24, 2008 10:11:35 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Grayscale information
The image consist of 6 part that has grayscale value
(black)
1 = 0
2 = 2A8
3 = 550
4 = 7F8
5 = AA0
6 = FFC
(white)

 

 
#3 Posted : Sunday, April 27, 2008 3:26:26 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


What is the build number of LEADTOOLS 15 that you are using?




Can you please send me the source RAW image dumped into a file so I can test
it? If yes, please pack the image in a ZIP or RAR file and post it here. If you don't want to post it here, please send it to support@leadtools.com and mention this forum post.

 
#4 Posted : Sunday, April 27, 2008 3:05:01 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Yasir Alani

I use leadtools build 15.0.1.3 ( leadtools.dll)

I attached source RAW image.

Thank you.

 

File Attachment(s):
raw images.zip (203kb) downloaded 24 time(s).
 
#5 Posted : Tuesday, April 29, 2008 2:08:39 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


Your image uses the Motorola Byte Order. Although the toolkit does allow support to this, the demo you used doesn't.


 


I was able to load the image correctly in our DotNet\VB\MainDemo by adding

e.MotorolaOrder = True


to the LoadInformation Event handler.


 


The screen shot shows how the image is opened in the above example and how the same image is shown in Photoshop.


 


LSB means LeastSignificantBitFirst, which is not the case with your data. So you should disable this when loading your image.
Guest attached the following image(s):
NeoKo.jpg
 
#6 Posted : Thursday, May 1, 2008 5:25:07 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Thank you
but this is not a solution for me.

The images i sent have grayscale step by step increasing.
I attatched screenshot on this post.

This RAW Images should be shown like screenshot

File Attachment(s):
ss.jpg (350kb) downloaded 23 time(s).
 
#7 Posted : Saturday, May 3, 2008 11:15:01 PM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


I used Photoshop 6 to open the file "20080425091020.raw"
that you sent me and I attached the screen shot in my previous post (lower
screen shot). The image is shown different from what your screen shot shows, but is identical to our demo.


 


Did you use Photoshop open the RAW image and create your
screen shot? If yes, what version of Photoshop? How did you set the RAW options (see screen shot for the options I used)?


 


If you did not use Photoshop, then what software (and version) did you use?

Guest attached the following image(s):
RawOptions.jpg
 
#8 Posted : Monday, May 5, 2008 4:46:01 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


I use photoshop cs3 10.0 and this is my settings

I load a raw image and apply AutoContrast.

Neo.Ko attached the following image(s):
photoshopsetting.jpg
 
#9 Posted : Wednesday, May 7, 2008 2:19:45 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


I tested "20080425091020.raw" on Photoshop 6 and
CS3 using the loading settings that you used in your last post. The image
opened but was dark (see Screen shot 1 – Photoshop), not as it was shown in your screen shot.


 


I then did some processing by opening the Image Menu and
selecting Adjust then Equalize. Only then the image was shown as in your screen shot (see Screen shot 2 – Photoshop Equalized).


 


To load the image in the same way with our Main API Demo, you need to use the following settings:


1. Width and Height = 3000


2. Resolution Horizontal and Vertical = 170


3. Offset = 0


4. Fill Order = MSB (NOT LSB as you mentioned in your first post).


5. Bits Per Pixel = 16


6. Pad Line 4 Bytes = Checked


7. View Perspective = Top Left


8. Color Order = Grayscale


 


The image opened with these setting just the way it opened in Photoshop (see Screen shot 3 – LEAD).


 


Then I did some processing by opening the Color menu and
selecting Histogram then Equalize. The image is now shown as in Photoshop after processing (see Screenshot 4 – LEAD Equalized).


 


Could you please check these two issues:


1. Did you enable LSB instead of MSB in our demo?


2. Did you make any type of Photoshop image processing to get the image as shown in your screenshot?

Guest attached the following image(s):
ScreenShot.jpg
 
#10 Posted : Friday, May 16, 2008 6:51:28 PM(UTC)

Neo.Ko  
Neo.Ko

Groups: Registered
Posts: 17


Thank you for your help :)

 

1. Yes, I did

2. Yes, I used "Auto Contrast"

 
#11 Posted : Sunday, May 18, 2008 4:21:34 AM(UTC)

Yasir Alani  
Guest

Groups: Guests
Posts: 3,022

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


If you try the Stretch Intensity and the Histogram Equalize
functions in LEADTOOLS and they don't give you the exact output you need, feel
free to explain the desired effect and we will try to give you other options to auto-level the pixel values.

 
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-2024, Yet Another Forum.NET
This page was generated in 0.228 seconds.