![background image](http://html.mh-extra.com/html/allied-vision-technologies/pike-f-032b/pike-f-032b_technical-manual_2903181329.webp)
Pike
Technical
Manual
V5.2.3
329
Configuration of the camera
Configuration
of
the
camera
DPC-Memory
alignment:
{defect_pixel_1,
defect_pixel_2
to
defect_pixel_n,
defect_column_1,
defect_column_2
to
defect_column_n}.
One
defect
pixel
is
saved
as
two
16-bit
values
(X,
Y),
so
the
size
of
defect
pixel
chunk
equals
NumberDefectPixel
*
4
(it
is
also
the
offset
of
defect
column
data).
One
defect
column
is
saved
as
three
16-bit
values
(X,
Y,
Height),
so
the
size
of
defect
column
chunk
equals
NumberDefectColumn
* 6
To write DPC coordinates:
1.
Query
the
limits
and
ranges
by
reading
DEFECT_PIXEL_CORRECTION_INFO
and
GPDATA_INFO
.
(Note:
If
the
list
is
empty,
you
do
not
have
to
write
the
DPC
pixels.
In
this
case
do
the
following:
in
DEFECT_PIXEL_CORRECTION_MEM
set
the
NumberDefectColumn
and
NumberDefectPixel
to
0.)
2.
Set
EnableMemWR
to
true
(1).
3.
Update
NumberDefectColumn
and
NumberDefectPixel
in
DEFECT_PIXEL_CORRECTION_MEM
to
the
new
values.
4.
Write
n
DPC
data
bytes
to
GPDATA_BUFFER
(n
might
be
lower
than
the
size
of
the
GPDATA_BUFFER
)
5.
Repeat
step
4
until
all
data
is
transferred.
6.
Set
EnableMemWR
to
false.
To read a DPC coordinates:
1.
Query
the
limits
and
ranges
by
reading
DEFECT_PIXEL_CORRECTION_INFO and GPDATA_INFO
.
2.
Query
NumberDefectColumn
and
NumberDefectPixel
from
DEFECT_PIXEL_CORRECTION_MEM
3.
Set
EnableMemRD
to
true
(1).
4.
Read
n
DPC
data
bytes
from
GPDATA_BUFFER
(n
might
be
lower
than
the
size
of
the
GPDATA_BUFFER
).
5.
Repeat
step
4
until
all
data
is
transferred.
6.
Set
EnableMemRD
to
false.
User profiles
Definition
Within
the
IIDC
specification
user
profiles
are
called
memory
channels.
Often
they
are
called
user
sets.
In
fact
these
are
different
expressions
for
the
following:
storing
camera
settings
into
a
non-volatile
memory
inside
the
camera.
Note
Pixel
coordinates
and
column
coordinates
must
be
sorted
ascending,
by
X
as
primary
and
Y
as
secondary
sorting-key.