Comments (6)
Here are the emails from and to pointgrey camera supporter.
From supporter
Thank you for sending me the screenshot.
It seems like your image is greenish/yellow.
Could you let me know the camera model you are testing, and the software you
are using to grab the images?
Lastly, could you send me another screenshot of camera's white balance
settings?
To supporter
I use matlab to get image by following commands
cam_format=char('F7_RGB_1224x1024_Mode1');
cam_adaptor = 'pointgrey';
cam = videoinput(cam_adaptor,1,cam_format)
imaqhwinfo(cam)
cam.Tag = 'Microscope Camera Object';
cam.TriggerRepeat = 0;
cam.FramesPerTrigger = 10;
cam.FrameGrabInterval = 1;
cam_src = getselectedsource(cam);
cam_src.WhiteBalanceRBMode = 'Off';
From supporter
Thank you for your email, and clarifying the software you are using.
The issue you are encountering, where the initial whitebalance setting in
Matlab causes the images to appear green, is something we are aware of and have
reported to Matlab.
Could you try setting the Whitebalancing setting to Manual mode, and try
adjusting the white balance settings until you are satisfied with the color you
get from the camera?
To supporter
This is the screen cut of matlab Image Acquisition Tool. Do you mean I should try number by number to get image to white? Do you have any suggestion about how to adjust the 2 number (increase or decrease)? After I turn off and reopen everything, do I need to set it again? Thank you
From supporter
Thank you for your email.
I would suggest setting the two numbers (red/blue color channel) to 512 and
adjust the settings from their depending on the resulting image. If the image
looks too red, you can reduce the first number, if the image appears too blue,
you can reduce the second number
Also, once you restart Matlab, you will have to reset the white balance setting
again.
from eedap.
With Wei-Chung's help, we find a white balance setting [587 710], which can generate image for blank area with intensity [208,210,194]. It is close to our desire color (three channels has same intensity).
I fix the white balance setting in eeDAP to [587 710].
We want to find a automatic method to find the white balance setting. The optimal intensity is [255,255,255].
from eedap.
White balance setting information for manufacture supporter
As we talked in KB http://www.ptgrey.com/KB/10251, White balance is a name
given to a system of color correction to deal with differing lighting
conditions. Adjusting the white balance by modifying the relative gain of R, G
and B in an image enables white areas to look "whiter". Taking some subset of
the target image and looking at the relative red to green and blue to green
response, the general idea is to scale the red and blue channels so that the
response is 1:1:1.
So if we want to get 1:1:1 R,G,B, that means GainR = G(avg)/R(avg) and GainB =
G(avg)/B(avg).
We define Red, Green and Blue all “starts off” as 512. (played around with a
camera and you can see that setting both Red and Blue to 512, you get the same
results as WB being turned off. )
To calculate to DB , as we talked in section 1, we should use the second way to
get DB. In flycapture, if we set 256 , (if Green value is still 512), then we
use 20lg(n) to calculate, so n = 512/256 =2 , 20lg(2) = 6
That means 2 multiple is 6db, 1 multiple is 0db, 1/2 multiple is -6db.
If we set 600, then n = 512/600 = 0.853 , 20lg(0.853) = -1.37dB.
from eedap.
White balance setting information for manufacture supporter
PGR use the formula below to get the WB value which we set in flycapture
setting
¼ mutilple means WB = 0 = log_2(1/4)x256 +512
1 multiple means WB = 512 = log_2(1)x256 + 512
two multiple menas WB = 768 = log_2(2)x256 + 512
four multiple means WB = 1024 = log_2(4)x256 + 512
So by my calculations (Histogram shows average RGB as 204, 200, 62.) , I need to set my red and blue as follows:
R = log2(Gavg/Ravg) * 256 + 512
= log2(0.98) * 256 + 512
= -0.03*256 + 512
= approximately 504
G = log2(Gavg/Bavg) * 256 + 512
= log2(3.22) * 256 + 512
= 1.69 * 256 + 512 = 944
So that is what I would set the WB registers at.
- step 3 To verify, turned on auto-WB, and I got R=501, B=935.
from eedap.
Add function in camera_open.m to adjust white balance.
- Automatic adjust at begin of MicroRT mode. User should make sure the microscope is on and viewing a blank area.
- Default WB setting is 587 710.
- Based on center 20x20 area camera image, calculate average R, G, B intensities.
- Compare 3 average intensities, if the difference is larger than 5, use functions in last issue to adjust WB setting.
- Repeat step 3, 4.
from eedap.
Move WB adjusting function from camera_open.m to Stage_Allighment.m
- Software does automatic color adjusting at begin of global registration (after stage arrives 'original point')
- Add a button in camera preview window. User can use it to adjust the color again. This button is only available during global registration.
After review, we can close this issue.
from eedap.
Related Issues (20)
- eeDAP in the cloud: NCIPhub HOT 3
- Create a way to show the basic information in an image HOT 4
- Record the reader ID and study mode (digital, microRT) with the start task HOT 4
- Write R scripts to create and update ImageScope xml HOT 4
- Upload eeDAP to NCIP hub HOT 1
- Record video and voice HOT 3
- update task format HOT 2
- Set joystick speed HOT 6
- Record stage position continually HOT 3
- New WSI viewer HOT 6
- Apply WSI ICC HOT 5
- Do registration after study HOT 7
- Tracking task HOT 6
- One point global registration HOT 1
- refine registration task HOT 7
- fully-automatic registration HOT 1
- Registration between two WSI HOT 9
- source code version and compiled version need different code for Matlab 2019a HOT 3
- Error: “Java Advanced Imaging (JAI) is required to read some TIFF files. Please install JAI” HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eedap.