Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Coordinate System Examples

0 ratings | 0.00 out of 5
Print

Downloads

Filename: transform_roi.zip
Requirements: View

The following examples ship with NI Vision:

LabVIEW:
National Instruments\LabVIEW\examples\vision\3. Applications
- Battery Clamp Inspection Example.vi
- Fuse Inspection Example.vi

CVI:
National Instruemnts\MeasurementStudio\CVI\samples\vision\3. Applications
- Battery Clamp Inspection Example.prj
- Fuse Inspection Example.prj

Visual Basic:
National Instruemnts\vision\examples\MSVB\3. Applications
- Battery Clamp Inspection.vbp
- Fuse Inspection.vbp

The following example illustrates additional functionality with coordinate systems.

The first example illustrates how the IMAQ Transform ROI VI works. The example assumes that the image file, Alu.bmp, is saved under: C:\Program Files\National Instruments\LabVIEW\EXAMPLES\Vision\Images (You can change the path to load your own image.)

The example displays two images. The first image, Image1, defines a rectangular region of interest (ROI) of
coordinates [0, 0, 100 150] (x1 Left, y1 Top, x2 Right, y2 Bottom). (The origin of the reference is the upper left corner.)

That ROI is translated and rotated to form the ROI displayed in the second image, Image2.
The origin of the ROI in Image1 is translated from (x=0, y=0) to (x=100, y=50), then the ROI is rotated +5 deg (counterclockwise).

Requirements


Filename: transform_roi.zip

Software Requirements


Application Software: LabVIEW Full Development System 5.1
Language(s): C, Visual Basic, LabVIEW

 
0 ratings | 0.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).