Re: Camera modeling & filter selection



Just like what Bjonr have mentioned,I would like to get
a high contrast between apple and bruise as high as
possible, given a CCD, optics and lighting. In order
to get the higest contrast, I also need to look for
the suitable wavelenght which give the highest
contrast and also the bandwidth of filter.

A1= Sum[E*R*T1*L*S]
A2= Sum[E*R*T2*L*S]
B1= Sum[E*R*T1*L*S]
B2= Sum[E*R*T2*L*S]

D= ((A2-A1)/(A1+A2))-((B2-B1)/(B2+B1))

where,
E = light emission
R= obeject's spectral reflectance
T1= bandpass filter transmittance
T2= bandpass filter transmittance
L= Lense's transmittance
S= CCD sensor's sensitivity

I was trying to solve this by writing program using
Matlab. I wrote something like this.

A = dlmread('C:\My Documents\normalfruit.csv');
B = dlmread('C:\My Documents\yake.csv');
Tmax = dlmread('C:\My Documents\Tmax.csv');

% Max. Transmittance was pre-computed using Gaussian
function with standard deviation range from 5 to 30
%Since E, R, L S are same, it was precalculated and
store as A and B respectively.

AT = zeros(861,26); %Allocate space for FT arrays
BT = zeros(861,26); %Allocate space for LT arrays

for p = 1:26
for n = 1:861

AT(n,p) = F(n,1)*Tmax(p,1);
BT(n,p) = L(n,1)*Tmax(p,1);
fprintf ('%6.3f %3d %2d\n', AT(n,p), n, p)
fprintf ('%6.3f %3d %2d\n', BT(n,p), n, p)

end
end

D = zeros(861,861); % Allocate space for D
arrays

for y = 1:861
for z = 1:861

D(y,z) = (((AT(y,1)-AT(z,1))/(AT(y,1)+AT(z,1))))-
...(((BT(y,1)-BT(z,1))/(BT(y,1)+BT(z,1))));
end
end

Dmax = max(max(abs(D)));

fprintf ('The maximum D is %3.4f', Dmax)

clear

%end of file

Although I managed to get the Dmax, which is the
highest contrast value but I failed to get the
suitable wavelenght and filter bandwidth with the
above program.

Can anyone kindly guide me on this. I really need
help in this as I have been trying to work this out
for a long time. Sorry for my elementary question and
bad explanation.

Till then, looking forward to hear from anyone soon.

Thanks in advance.

Have a nice day.

Yours sincerely,

Bernard
.



Relevant Pages

  • Re: More on A.pellucida
    ... You seem confused by the issue of contrast. ... projection' you mean you simply took out the projection lens/eyepiece ... Your CCD should be at the ... magnification of the objective) x 70 micrometers, ...
    (sci.techniques.microscopy)
  • Re: Different size for different font
    ... Studies for years have shown that high contrast such a ... High contrast environments are generally harder on the eyes, ... duration, age, eye health, and ambient light levels. ... this is not as much of a problem with modern screens that have the three ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: converting 35 mm slides to digital images
    ... cameras are also high contrast imagers. ... a digital camera, the contrast will be very high. ... My slide duplicator is labeled "Ohnar", has metal construction and no zoom ...
    (rec.photo.digital)
  • Re: new scan snippets: 4990 vs. V700 vs. vs LS-8000 (same negative)
    ... the contrast more for edges that are already high contrast. ... So people mask out the high contrast edges to protect them from being given "halos". ... one doesn't need sharpening of edges that are sharp already. ... The small radius sharpening used in the example prevents very wide/visible halo, but still clips all detail into a featureless halo when the edge contrast is already high with "regular sharpening". ...
    (comp.periphs.scanners)
  • Re: Contrast of a print
    ... I know in the USA saturated colour and high contrast is ... Post production allows for many options prior to printing. ...
    (rec.photo.equipment.35mm)