|
ƒtƒŒ[ƒ€ƒoƒbƒtƒ@[ƒAƒNƒZƒX
pxd_PIXCIopen("", "NTSC", ""); @@@@@// •W€‚ÌNTSCƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "CCIR", ""); @@@@// CCIRƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "", "VIDEO.FMT")@// .. “ÆŽ©ƒtƒH[ƒ}ƒbƒg
pxd_doSnap(0x1, 1, 0); @@@@@@@@@@@// ƒXƒiƒbƒvƒCƒ[ƒWŽæ“¾‘Ò‚¿
// ƒ‚ƒmƒNƒƒf[ƒ^‚ւ̃AƒNƒZƒX
unsigned char buf[1024]; @@@@@@@@// ƒTƒCƒY>= # ƒsƒNƒZƒ‹ per AOIƒ‰ƒCƒ“
unsigned long c = 0;
int i, j, y;
for (y = 0;; y++) {
i = pxd_readuchar(0x1, 1, 0, y, -1, y+1, buf, sizeof(buf), "Grey");
if (i <= 0) @@@@@@@@@@@@@@@@@// ƒCƒ[ƒW‚ÌŽŸ‚̃‰ƒCƒ“‚ð“ǂݞ‚Ý
break; @@@@@@@@@@@@@@@@@@ // ƒ‰ƒCƒ“‚ÌÅŒã‚܂œǂݞ‚ÝŒã
for (j = 0; j < i; j++) @@@@@@@@@@@// ƒXƒLƒƒƒ“‚µ‚Ä
if (buf[j] < 64) @@@@@@@@@@@@@@// ƒeƒXƒg‚²ƒsƒNƒZƒ‹ƒJƒEƒ“ƒg
c++; @@@@@@@@@@@@@@@@@@@ // .. 64–¢–ž‚Ì’l‚Å
}
@// RGBƒf[ƒ^‚Ì1ƒ‰ƒCƒ“‚ÖƒAƒNƒZƒX
pxd_readuchar(0x1, 1, 0, 0, -1, 1, buf, sizeof(buf), "RGB");
printf("Pixel at (0,20) is %d/%d/%d\\n", buf[20+0], buf[20+1], buf[20+2];
@// RBG‚ÌRƒf[ƒ^[‚Ì1ƒ‰ƒCƒ“‚ÖƒAƒNƒZƒX
i = pxd_readuchar(0x1, 1, 0, 0, -1, 1, buf, sizeof(buf), "RofRGB");
for (j = 0, c = 0; j < i; j++)
c += buf[j];
printf("Red componnent average is %f\\n", (double)count/i); |
ƒCƒ[ƒWŽæ‚螂݂ÆVGA•\ަ
HDC hDC; RECT rect;
pxd_PIXCIopen("", "RS-170", ""); @@@@ // •W€RS170ƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "NTSC", ""); @@@@// .. NTSCƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "NTSC/YC", ""); @// .. NTSC S-VIDEOƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "CCIR", ""); @@@@// .. CCIR,ƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "PAL", ""); @@@@ // .. PALƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "PAL/YC", ""); @@// .. PAL S-VIDEOƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "", "VIDEO.FMT")@// .. “ÆŽ©ƒtƒH[ƒ}ƒbƒg
// & resolution?
hDC = GetDC(hWnd); @@@@@@@@@@@// ƒCƒ[ƒWƒEƒCƒ“ƒhƒE‚ւ̃nƒ“ƒhƒ‹
GetClientRect(hWnd, &rect); @@@@@@ // ƒEƒCƒ“ƒhƒEƒTƒCƒY‚̎擾
rect.right++; rect.bottom++; @@@@@@@// •“I->”r‘¼“I
SetStretchBltMode(hDC,STRETCH_DELETESCANS);//ƒEƒCƒ“ƒhƒEƒ‚[ƒh‚ðƒZƒbƒg
pxd_doSnap(0x1, 1, 0); // snap image into buffer 1
pxd_renderStretchDIBits(0x1, 1, 0, 0, -1,-1,@@@@@// ƒtƒŒ[ƒ€ƒoƒbƒtƒ@[‚ÌŠm•Û& AOI
0, hDC, // specify window
rect.right/4, rect.bottom/4, @@@@@@@@@@@@@// ƒEƒCƒ“ƒhƒE‚̶ォ‚ç
rect.right/2, rect.bottom/2, @@@@@@@@@@@@@// ƒEƒCƒ“ƒhƒEƒTƒCƒY
0); @@@@@@@@@@@@@@@@@@@@@@@@@@@@// •\ަ
|
|
ƒCƒ“ƒ^[ƒAƒNƒeƒBƒuEƒV[ƒPƒ“ƒXŽæ‚èž‚Ý
int b;
pxd_PIXCIopen("", "NTSC", ""); @@@@@ @@// •W€NTSCƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_xcopen("", "CCIR", "");@@@@@@ @@ // .. CCIRƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_xcopen("", "", "VIDEO.FMT"); @@ @@// .. “ÆŽ©ƒtƒH[ƒ}ƒbƒg
for (b = 1; b <= pxd_imageZdim(); b++) { @@@ // ‘S‚Ẵoƒbƒtƒ@[ƒ‰ƒ“
printf("Key ENTER to capture buffer #%ld\\n", b);
while (getchar() != '\\n') ; @@@@@@@@@@@ // ƒ†[ƒUƒgƒŠƒK[‘Ò‹@
pxd_doSnap(0x1, b, 0); @@@@@@@@@@@@@ // ƒoƒbƒtƒ@['b'‚Ö‚ÌŽæ‚èž‚Ý
}
printf("All buffers captured.\\n");
|
ƒ‰ƒCƒuƒrƒfƒIEƒOƒ‰ƒtƒBƒbƒNƒI[ƒo[ƒŒƒC
pxd_PIXCIopen("", "NTSC/YC", ""); @@@// •W€S-VideoƒtƒH[ƒ}ƒbƒg–”‚Í
//pxd_PIXCIopen("", "PAL", ""); @@@@@@// .. PALƒtƒH[ƒ}ƒbƒg
pxd_renderDirectVideoInit(1, hWnd); @@@@//S/VGA‚Ö‚Ì init ƒ_ƒCƒŒƒNƒgƒrƒfƒI
pxd_renderDirectVideoLive(1, hWnd, @@@@// S/VGA‚ւ̃‰ƒCƒuƒrƒfƒI•\ަ
0,0,INT_MAX,INT_MAX, @@@@@@@@@@@ // ˆÊ’u‚ƃEƒCƒ“ƒhƒE”͈Í
RGB(0,0,189),RGB(0,0,189)); // ƒOƒ‰ƒtƒBƒbƒNƒI[ƒo[ƒŒƒC‚ÉŽg—p‚·‚éƒJƒ‰[ƒL[
hDC = GetDC(hWnd) @@@@// ƒ‰ƒCƒuƒrƒfƒIã‚ɃOƒ‰ƒtƒBƒbƒNƒI[ƒo[ƒŒƒC
RECT rect;
SetRect(&rect, 20, 20, 40, 40);@@@@@@@ // •W€GDI/MFC‚̌ĂÑo‚µ
DrawFocusRect(hDC, &rect); @@@@@@ @ // ƒOƒ‰ƒtƒBƒbƒN‚ðˆø‚‚½‚߂Ɏg—p‰Â”\
ReleaseDC(hWnd, hDC); @@@@@@@@@@@// ƒ‰ƒCƒuƒrƒfƒIã |
|
SCFƒXƒ^ƒCƒ‹ƒCƒ“ƒ^[ƒtƒFƒCƒXŠÖ”
ƒƒ‚ƒŠ[ŠÇ—
EBuffer's Capture Field Coun
EBuffer's Capture General Purpose Input
EBuffer's Capture System Time
ELast Captured Buffer: Buffer Numbe
ELast Captured Buffer: Field Count
ELast Captured Buffer: System Time
EGet PXIMAGE: Access Imaging Board Frame Buffer
EGet PXIMAGE3: Access Imaging Board Frame Buffers
EGet PXIMAGE: Release Access to Imaging Board Frame Buffers
EGet PXIMAGE3: Release Access to Imaging Board Frame Buffers
EVideo Snap and Wait
“o˜^/Windows
EWindows: Register Event upon Video Field
EWindows: Unregister Event upon Video Field
EWindows: Register Event upon Captured Video Field
EWindows: Unregister Event upon Captured Video Field
EWindows: Register Event upon General Purpose Trigger
EWindows: Unregister Event upon General Purpose Trigger
“o˜^/DOS
EDOS: Register Callback upon Video Field
EDOS: Unregister Callback upon Video Field
EDOS: Register Callback upon Captured Video Field
EDOS: Unregister Callback upon Captured Video Field
EDOS: Register Callback upon General Purpose Trigger
EDOS: Unregister Callback upon General Purpose Trigger
“o˜^/Linux
ELinux: Register Signal upon Video Field
ELinux: Unregister Signal upon Video Field Linux:
ERegister Signal upon Captured Video Field Linux:
EUnregister Signal upon Captured Video Field Linux:
ERegister Signal upon General Purpose Trigger Linux:
EUnregister Signal upon General Purpose Trigger
GPI/OƒCƒ“ƒ^[ƒtƒFƒCƒX
EGeneral Purpose Input Signal: Sense
EGeneral Purpose Input Signal: Reset
EGeneral Purpose Output Signal: Set
EGeneral Purpose Output Signal: Get
EGeneral Purpose Trigger Count: Sense
‰æ‘œ“ü—ÍE•\ަEŽæ“¾E•Û‘¶EƒVƒŠƒAƒ‹’ÊM
EVideo Snap
EVideo Snap Pair
EVideo Live
EVideo Live Pair Alternate
EVideo Live Sequence
EVideo UnLive
EVideo Abort
EVideo Live Trigger
EVideo Live Sequence Trigger
ECheck if Video Initiated
EGet Frame Buffer Image Aspect Ratio
EGet Frame Buffer Image Bit Depth
EGet Frame Buffer Image Color Components
EGet Frame Buffer Image Field Dimension
EGet Frame Buffer Image Horizontal Dimension
EGet Frame Buffer Image Vertical Dimension
EGet Frame Buffer Image Count
EGet Imaging Board Driver ID
EGet Imaging Board Include Files ID
EGet Imaging Board Library ID
EGet Imaging Board's Frame Buffer Size
EGet Imaging Board's Model
EGet Imaging Board's Submodel
EGet Imaging Board Unit Count
ELoad Image: BMP Format
ELoad Image: TIFF Format
ESave Image: BMP Format
ESave Image: PCX Format
ESave Image: TARGA Format
ESave Image: TIFF Format
ELoad Frame Buffers
ESave Frame Buffers
EErrors: Translate Error Code to String
EErrors: Check & Report Faults
EPIXCI® Imaging Board: Open and Set Video Format Configuration
EPIXCI® Imaging Board: Close
ERead Pixel Values as Unsigned Char
ERead Pixel Values as Unsigned Short
EWrite Pixel Values as Unsigned Char
EWrite Pixel Values as Unsigned Short
EWindows: Create Device Independent Bitmap
EWindows: Release Device Independent Bitmap
EWindows: Direct Video Display, Init
EWindows: Direct Video Display, Done
EWindows: Direct Video Display, Start
EWindows: Direct Video Display, Stop
EWindows: Display Image Frame Buffer On Device Context
ESerial Port: Set Configuration
ESerial Port: Read
ESerial Port: Write Camera Link
ESerial: Initialize Camera Link
ESerial: Close Camera Link
ESerial: Read Camera Link
ESerial: Write
ESet EXSYNC and PRIN Values
EGet EXSYNC Value
EGet PRIN Value
ESet EXSYNC and PRINC Modes
EGet EXSYNC Mode
EGet PRINC Mode
‰æ‘œ’²®
ESet Video Input Multiplexer
ESet Video Contrast and Brightness
ESet Video Hue and Saturation
EGet Video Input Multiplexer
EGet Video Contrast
EGet Video Brightness
EGet Video Hue
EGet Video U Saturation
EGet Video V Saturation
ESet Bright White Balance
ESet Dark White Balance
EGet Video Field Count
EGet Video Field Characteristic
ESet Video Configuration as per Compiled Include
SV/CMOSƒJƒƒ‰ƒLƒbƒg—pŠÖ”
ESet SV9M001/SV9T001 Exposure and Gain
ESet SV9M001/SV9T001 Exposure and Digital Gain
EGet SV9M001/SV9T001 Exposure
EGet SV9M001/SV9T001 Gain
EGet SV9M001/SV9T001 Digital Gain
ESet SV9M001/SV9T001 Resolution and Timing
EGet SV9M001/SV9T001 Aoi Top Edge
EGet SV9M001/SV9T001 Aoi Left Edge
EGet SV9M001 Scan Direction
EGet SV9M001/SV9T001 Subsample
EGet SV9M001/SV9T001 Pixel Clock Frequency
ESet SV9M001/SV9T001 Video and Trigger Modes
ESet SV9M001/SV9T001 Controlled Exposure and Frame Rate
EGet SV9M001/SV9T001 Vidoe Mode
EGet SV9M001/SV9T001 Controlled Video Mode
EGet SV9M001/SV9T001 Controlled Trigger Mode
EGet SV9M001/SV9T001 Controlled Frame Rate
|
\‘¢‘̃Xƒ^ƒCƒ‹ƒCƒ“ƒ^[ƒtƒFƒCƒXŠÖ”
EPIXCI® Imaging Board: Structured Open
EPIXCI® Imaging Board: Structured Close
EGet Imaging Board and Driver Information
EGet Extended Imaging Board and Driver Information
EObtain Last Logged Fault
EGet Driver Parameters
ESet Driver Parameters
EAllocate Copy of Video State
EFree Copy of Video State
ECompare Pair of Video State Copies
EDefine Video State
EDelete Video State
EGet Video State
EExport Copy of Video State
EImport Copy of Video State
EFixup Video State
EFill Video State
ESign Video State
ESet Default Configuration Copy of Video State
EDeclare Instance of Video Format Configuration Structures
EInitialize Instance of Video Format Configuration Structures
EObtain Pointer into Imaging Board Memory
EFree Pointer into Imaging Board Memory
EObtain pximage Access into Imaging Board Memory
EObtain pximage3 Access into Imaging Board Memory
EObtain Filtered pximage Access into Imaging Board Memory
EObtain Filtered pximage3 Access into Imaging Board Memory
ERead/Write Imaging Board Memory
EGet Live/Snap Status
EGet Current Video Status
EGet Extended Video Status
EGet Current Video Status Value
EGet Current Buffer Status
EInitiate Snap into Frame Buffer
EInitiate Snap Pair into Frame Buffers
EInitiate Continuous Capture into Frame Buffer
EInitiate Continuous Alternate Capture into Frame Buffers
EInitiate Continuous Capture into Memory Space
EInitiate Sequence Capture into Frame Buffers
EInitiate Triggered Capture into Frame Buffer
ETerminate Live/Snap into Frame Buffer
EAbort Live/Snap into Frame Buffer
ESet Video Configuration
EAdjust Video Configuration
EGeneral Purpose Input Signal: Sense
EGeneral Purpose Input Signal: Reset
EGeneral Purpose Output Signal: Set
EGeneral Purpose Output Signal: Get
EDevice Control
ELoad Frame Buffers as Stream
ESave Frame Buffers as Stream
EErrors: Translate Error Code to String
EErrors: Check & Report Faults
ELoad Image: BMP Format
ELoad Image: TIFF Format
ESave Image: BMP Format
ESave Image: PCX Format
ESave Image: TARGA Format
ESave Image: TIFF Format
ERead Pixel Values as Unsigned Char
ERead Pixel Values as Unsigned Short
ERead Pixel Values as Unsigned Int
EWrite Pixel Values as Unsigned Char
EWrite Pixel Values as Unsigned Short
EWrite Pixel Values as Unsigned Int
EWindows: Make Device Independent Bitmap
EWindows: Free Device Independent Bitmap
EWindows: Display Image Frame Buffer On Device Context
ECamera Control: SILICON VIDEO® 9M001/9T001
EPXIMAGE: Image and Pixel Specifications
EPXIMAGE: Set & Get Area of Interest Window
EPXIMAGE: Get Advice, Errors, Info & Options
EPXIMAGE: Set to Access Sequential Pixels
EPXIMAGE: Read Sequential Pixels
EPXIMAGE: Write Sequential Pixels
EPXIMAGE: Wait for Sequential Access Completion
EPXIMAGE: Obtain Sequential Access Pixel Count
EPXIMAGE: Set to Access Non-Sequential Pixels
EPXIMAGE: Prepare for Non-Sequential Pixel Access
EPXIMAGE: Access Non-Sequential Pixels
EPXIMAGE: Wait for Non-Sequential Access Completion
EPXIMAGE: Set to Obtain Pointer to Pixels
EPXIMAGE: Obtain Pointer to Pixels
EPXIMAGE: Release Pointer to Pixels
<+>ƒVƒŠƒAƒ‹(RS-232)‚É‚æ‚éƒJƒƒ‰ƒRƒ“ƒgƒ[ƒ‹ with PIXCI® D,
D24, D32, D2X, D3X, CL1, or CL3SD ƒ{[ƒh.fmt(ƒrƒfƒIƒtƒH[ƒ}ƒbƒgƒtƒ@ƒCƒ‹)‚Í
XCAP ƒ\ƒtƒgƒEƒFƒA‚É‚Ä쬂³‚ê‚Ü‚·BƒtƒHƒƒCƒgƒoƒ‰ƒ“ƒX’²® for Byaer o—Í
ƒJƒƒ‰ with PIXCI® D or CL ƒVƒŠ[ƒYƒ{[ƒh ƒJƒ‰[ˆ— for Bayero—̓Jƒƒ‰
with PIXCI® D or CL ƒVƒŠ[ƒYƒ‚[ƒh
|