Anaglyph 3Dimesional Image Processing Using NI-LabVIEW

Similar documents
CS 563 Advanced Topics in Computer Graphics Stereoscopy. by Sam Song

Mahdi Amiri. May Sharif University of Technology

Robert Collins CSE486, Penn State Lecture 08: Introduction to Stereo

GE 119 PHOTOGRAMMETRY 2

Binocular cues to depth PSY 310 Greg Francis. Lecture 21. Depth perception

lecture 10 - depth from blur, binocular stereo

Devices displaying 3D image. RNDr. Róbert Bohdal, PhD.

Stereoscopic Systems Part 1

DISTANCE MEASUREMENT USING STEREO VISION

Generation of Digital Watermarked Anaglyph 3D Image Using DWT

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Realtime 3D Computer Graphics Virtual Reality

Optimizing Monocular Cues for Depth Estimation from Indoor Images

Think-Pair-Share. What visual or physiological cues help us to perceive 3D shape and depth?

Important concepts in binocular depth vision: Corresponding and non-corresponding points. Depth Perception 1. Depth Perception Part II

Speed Control of A DC Motor Through Temperature Variation Using NI ELVIS LabVIEW

Basic distinctions. Definitions. Epstein (1965) familiar size experiment. Distance, depth, and 3D shape cues. Distance, depth, and 3D shape cues

The topics are listed below not exactly in the same order as they were presented in class but all relevant topics are on the list!

Ceilbot vision and mapping system

INTRODUCTION TO LABVIEW

Animation Susen Rabold. Render. Engineers

Smart Autonomous Camera Tracking System Using myrio With LabVIEW

Tanjore, Tamil Nadu, South India

Tecnologie per la ricostruzione di modelli 3D da immagini. Marco Callieri ISTI-CNR, Pisa, Italy

Are you looking for ultrafast and extremely precise stereovision technology for industrial applications? Learn about

Natural Viewing 3D Display

Project 4 Results. Representation. Data. Learning. Zachary, Hung-I, Paul, Emanuel. SIFT and HoG are popular and successful.

Tecnologie per la ricostruzione di modelli 3D da immagini. Marco Callieri ISTI-CNR, Pisa, Italy

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

COMS W4172 Perception, Displays, and Devices 3

Integrating 3D Vision Measurements into Industrial Robot Applications

Stereo Image Rectification for Simple Panoramic Image Generation

Engineering Project-I. Module 1: Familiarization of LabVIEW and the Vernier Toolkit

Multidimensional image retargeting

Image Processing using LabVIEW. By, Sandip Nair sandipnair.hpage.com

Multimedia Technology CHAPTER 4. Video and Animation

3D Stereo Data for the Estimation of Pavement Construction Quantities and Costs

Stereo Graphics. Visual Rendering for VR. Passive stereoscopic projection. Active stereoscopic projection. Vergence-Accommodation Conflict

Conversion of 2D Image into 3D and Face Recognition Based Attendance System

Convergence Point Adjustment Methods for Minimizing Visual Discomfort Due to a Stereoscopic Camera

Colorado School of Mines. Computer Vision. Professor William Hoff Dept of Electrical Engineering &Computer Science.

Multiview Generation for 3D Digital Signage

PERCEIVING DEPTH AND SIZE

USING VISUALIZATION FOR THE DESIGN PROCESS OF RURAL ROADS

/14/14 Fixed an issue with tm_waitnextframe when setting an exposure greater than 5 seconds.

TECHNICAL ANALYSIS OF ANALOGIES OF STEREO DISPLAYING TECHNIQUES WITH 3D GENERATED SCENES IN VISUALIZATION

Integration of 3D Stereo Vision Measurements in Industrial Robot Applications

LabVIEW Experiment 1 Light Sensor Calibration Using Arduino Data Acquisition (Arduino DAQ)

Integrating Machine Vision and Motion Control. Huntron

3D from Images - Assisted Modeling, Photogrammetry. Marco Callieri ISTI-CNR, Pisa, Italy

Visual Rendering for VR. Stereo Graphics

3D Stereo Visualization

And. Modal Analysis. Using. VIC-3D-HS, High Speed 3D Digital Image Correlation System. Indian Institute of Technology New Delhi

3D Video services. Marco Cagnazzo

Visual Pathways to the Brain

Multi-projector-type immersive light field display

Prof. Feng Liu. Spring /27/2014

Miniature faking. In close-up photo, the depth of field is limited.

LUMS Mine Detector Project

PHY 351/651 LABORATORY 1 Introduction to LabVIEW

3D Edit. for Bogart SE. Manual

New Sony DepthSense TM ToF Technology

Binocular Stereo Vision

Office Hours. Scattering and Polarization

New Sony DepthSense TM ToF Technology

With respect to the National Instruments software product(s) being used, the following patents may apply:

Live Anaglyphic Camera Recordings: A Software System for Real-Time Recording of Stereoscopic Image-Sequences and Videos

Using Edge Detection in Machine Vision Gauging Applications

Self-calibration of a pair of stereo cameras in general position

How to Adjust the Back Focus for TCM-5311

VISION ASSISTED PICK AND PLACE ROBOTIC ARM

International Journal of Advance Engineering and Research Development

Miniaturized Camera Systems for Microfactories

Mobile 3D Visualization

Compression of Monochrome Stereoscopic 3D Images with Minimal Quantization Error

User English Manual for Sputnik Stereo Camera

Stereo Optical Company Vision Tester Slide Package:

Visual Secret Sharing Scheme with Autostereogram*

Labview for Everyone (National Instruments Virtual Instrumentation Series) Jeffrey Travis

Autonomous Vehicle Navigation Using Stereoscopic Imaging

Processing Framework Proposed by Marr. Image

Centre for Digital Image Measurement and Analysis, School of Engineering, City University, Northampton Square, London, ECIV OHB

ENGR3390: Robotics Fall 2009

Colour Object Counting and Sorting Mechanism Using Image Processing Approach Avadhoot R.Telepatil 1, 2 Prashant M. Jadhav 2 1

PH 481/581 Physical Optics Winter 2018

Improving Prototype Validation with NI Multisim and LabVIEW. Bhavesh Mistry, Product Manager National Instruments

Complex Sensors: Cameras, Visual Sensing. The Robotics Primer (Ch. 9) ECE 497: Introduction to Mobile Robotics -Visual Sensors

Interaxial Distance and Convergence Control for Efficient Stereoscopic Shooting using Horizontal Moving 3D Camera Rig

Multi-View Geometry (Ch7 New book. Ch 10/11 old book)

Practice Exam Sample Solutions

Figure 3.174: Illustration of the code of the event f USB that plots an USB camera frame if the typed frame is under the acceptable limits (case 0)

Measurements using three-dimensional product imaging

Quanser NI-ELVIS Trainer (QNET) Series: QNET ROTPEN. Rotary Pendulum (ROTPEN) User Manual. User Manual

Pixels, Numbers, and Programs

DEPTH PERCEPTION. Learning Objectives: 7/31/2018. Intro & Overview of DEPTH PERCEPTION** Speaker: Michael Patrick Coleman, COT, ABOC, & former CPOT

Photoneo's brand new PhoXi 3D Camera is the highest resolution and highest accuracy area based 3D

Karmin2 Stereo Camera

EBU TECHNOLOGY AND DEVELOPMENT. The EBU and 3D. Dr Hans Hoffmann. Dr David Wood. Deputy Director. Programme Manager

USE R/G GLASSES. Binocular Combina0on of Images. What can happen when images are combined by the two eyes?

Docking station. Technical Documentation

Transcription:

IJIRST International Journal for Innovative Research in Science & Technology Volume 1 Issue 8 January 2015 ISSN (online): 2349-6010 Anaglyph 3Dimesional Image Processing Using NI-LabVIEW K. Mohamed Hussain R. Allwyn Rajendran Zepherin Department of Instrumentation and Control Engineering Department of Instrumentation and Control Engineering M. Shantha Kumar S. Abirami Assistant Professor Department of Instrumentation and Control Engineering Department of Instrumentation and Control Engineering Abstract 3Dimesional Imaging has become highly emerging trend in recent times. But conversion of 2Dimesional Images to 3Dimesional Images is not so easy and cannot be done in less cost. This paper deals with the conversion of 2D images into 3D with the help of NI-LabVIEW software. Two cameras which are mounted side by side serves as Left and Right eye to view the 3D image. Every Image has Red, Blue and Green components. By taking Red Component of Left image and Blue, Green Component of Right Image and merging these images will give you the Red-Cyan Image which is the traditional 3D image. The Extraction of Red, Blue, Green Component and Merging will be done through NI-LabVIEW. The Depth Image will be seen through a Red-Cyan 3D glass. Keywords: Cameras, Red-Blue-Green Component, 3D Imaging, NI-LabVIEW. I. INTRODUCTION Stereoscopy (also called stereoscopies or 3D imaging) is a method for producing or improving the illusion of depth in an image by means of stereopsis for binocular vision. The word stereoscopy arises from Greek stereos, meaning "firm, solid", and skope, meaning "to look, to see" [1]. Any stereoscopic image is called stereogram. Originally, stereogram referred to a couple of stereo images which could be viewed using a stereoscope. Most stereoscopic approaches present two offset images individually to the left and right eye of the observer. These twodimensional images are then joined in the brain to provide the perception of 3D depth. This technique is eminent from 3D displays that show an image in three full dimensions, allowing the viewer to increase information about the 3-dimensional objects being displayed by head and eye movements. Anaglyph 3D is the term specified to the stereoscopic 3D effect attained by means of encrypting each eye's image by means of screens of varied (usually chromatically opposite) colors, stereotypically red and cyan. Anaglyph 3D images contain two differently filtered colored images, one for each eye. When observed from sideways the "color-coded" "anaglyph glasses", each of the two images reaches one eye, producing a combined stereoscopic image. The visual cortex of the brain fuses this into perception of a three dimensional scene or composition. The first method to produce anaglyph images was developed in 1852 by Wilhelm Roll Mann in Leipzig, Germany. [2] It was W. Roll Mann who in 1853 first illustrated the principle of the anaglyph using blue and red lines on a black field with red and blue glasses to perceive the effect, but this was for line drawings only. In 1858 Joseph D'Almeida began projecting threedimensional magic lantern slide shows using red and green filters with the audience wearing red and green goggles. Louis Ducos du Hauron first printed anaglyphs, produced in 1891. This procedure contained of reproducing the two negatives which form a stereoscopic picture on to the same paper, one in blue (or green), and one in red. The observer would then use colored goggles with red (for the left eye) and blue or green (Cyan) (right eye). The left eye would see the blue image which would appear black, whilst it would not see the red; similarly the right eye would see the red image, this recording as black. Thus a three dimensional image will be obtained. NI LabVIEW is a program design language which permits simple interfacing with measurement hardware. With its sole graphical programming atmosphere, archives covering information of thousands of devices and useful toolkits, obtaining data using LabVIEW is much easy. LabVIEW was created by Jeff Kodosky 25years ago, he was also known as the Father of LabVIEW [3]. First it was released for the Apple Macintosh in 1986, the graphical language at the core of LabVIEW is named "G". The hint at that period was to reform the measurement and automation industry, and the technology brought about the computer-generated All rights reserved by www.ijirst.org 108

instrument - serving engineers and experts to modify measurement schemes to fulfil their needs. Till 1992 that LabVIEW was accessible for platforms other than the Macintosh and later it has experienced several revisions. NI-LabVIEW has several numbers of Functional Blocks which perform various programming tasks graphically. It uses Graphical Controls and Indicators and produces Real time flow of processes and programs virtually. The interfacing measuring instruments such as sensors, transducers, meters etc. do not need any complex installation procedures, but needs devices like NI- DAQ, NI-ELVIS, NI-MYRIO etc. Programs in LabVIEW are called Virtual Instruments. LabVIEW VI has three major components, they are: Front Panel, Block Diagram, Connector Panel. LabVIEW creates the user interface with the help of Front panel of the software. Front panel consists of Controls and Indicators. Block Diagram consists of Programming functions and Blocks (such as interfacing blocks, mathematical-trigonometrical functions, Digital Processing system interfaces). Connector panel connects and creates VIs with SubVIs. II. 3D STEREO PROCEDURE 3D imaging technology has come a long way from its ancestries in theoretical exploration labs, and cheers to modernizations in instruments, illumination and most prominently, embedded processing, 3D vision currently seems in a diversity of machine automated applications. From vision-guided robotic bin-picking to high accuracy metrology, the newest group of processors can now handle the huge data sets and refined algorithms essential to extract depth info and rapidly create decisions. The LabVIEW Vision Development Module makes 3D vision handy to engineers through seamless integration of software and hardware tools for 3D within one graphical development atmosphere. To demonstrate how binocular stereo vision works, Figure 1 illustrates the diagram of a basic stereo vision arrangement, where both cameras are fixed faultlessly corresponding to each other, and have the precise focal length. Fig. 1: Basic Stereo Vision Arrangement [4] III. HARDWARE SPECIFICATIONS The Hardware components needed for this system are: (1) Personal Computer installed with LabVIEW 2013 or LabVIEW 2014. (2) Web Cameras 2 Nos. (3) USB Hub (Optional) A. Personal Computer: Personal Computers can be of either a Desktop or Laptop, but it should have LabVIEW software version 2013 or 2014 installed in it. This is because LabVIEW versions 2013 and 2014 have Virtual Imaging System Blocks installed which is necessary for 3D image Processing while the predecessor versions do not have Imaging systems. All rights reserved by www.ijirst.org 109

Fig. 2: PC with LabVIEW B. Web Cameras: Web cameras play a vital role in this system since they are the ones which capture the Left and Right Image. These captured images are used for conversion and processing. The cameras should have frame rate of 30 per second otherwise there will be a mismatch in getting the images. The two cameras should be of same type and size and may be from the same manufacturer. Fig. 3: Web Cameras C. USB Hub: USB Hubs are optional requirement for this system they are used when interfacing the Cameras with Interfacing Instruments like NI-MYRIO. These are widely used for Real time applications. For our system, a USB Hub with minimum of two ports is needed since two cameras are used. Fig. 4: USB Hub IV. LAB VIEW 3D PROGRAMMING As mentioned earlier, LabVIEW VI has three major components, they are: Front Panel, Block Diagram, Connector Panel. LabVIEW creates the user interface with the help of Front panel of the software. Front panel consists of Controls and Indicators. Block Diagram consists of Programming functions and Blocks (such as interfacing blocks, mathematical-trigonometrical functions, Digital Processing system interfaces). A. Block Diagram: Block Diagram part consists of several Functional Blocks. These blocks include Imaging systems which are necessary for 3D programming [5]. The Block Diagram of the system is as shown in Figure 5. All rights reserved by www.ijirst.org 110

Fig. 5: Block Diagram of 3D Image VI The Block Diagram consists of following blocks. 1) Vision Acquisition: In Vision Acquisition block, the images from the Cameras are obtained. This is done by selecting the appropriate hardware camera by double clicking the block. 2) Vision Assistant: Vision Assistant Systems help to convert, filter and morph images. The process of converting the RBG Image (Left and Right) to Grayscale and extracting Red-Blue-Green Components are done through this block. 3) IMAQ Image to Array: In this Block, the Grayscale images are converted into Array of Pixel Values. These Pixel Values are either Unsigned 16bit, Integer 16bit or Unsigned 32bit etc. 4) For Loop: For Loop with Auto Indexing Enable converts the 2D Array Pixel Values into 1D Array Pixel Values, but two For Loops nested will convert the 2D Array into Single Integer Value. 5) RBG to COLOR: This Block provides colors to the Pixel Values, for the Left Image Red Color will be given since Red Component is needed and for the Right Image Blue and Green Colors are given since Blue-Green Components is needed. 6) IMAQ Create: This block is needed to provide the 3D image as it is the one which mentions which type of image is to be obtained for the converted Pixel Values. In above Figure, RBG image is given as a control, mentioning that the output image should be RBG Color Image. 7) IMAQ Array to Color Image: This block converts the 2D Pixels out from the For Loop to 3D IMAGE and the image is obtained in the Image Indicator as shown in Figure 5. B. Front Panel: As already mentioned, Front Panel is the User Interface Window in which only Controls, Indicators and also Decorations can be placed. For this 3D Image system, an Image Indicator itself is necessary to View the Obtained Image. There are Different types of Image and Video Displays in LabVIEW. The Front Panel of the System is as shown in Figure 6. All rights reserved by www.ijirst.org 111

Fig. 6: Front Panel of 3D Image VI Here Red and Cyan Images are separated with a distance. Hence to visualise the Red and Cyan Images separately, 3D Red- Cyan Glass is needed. The Red-Cyan Glass will be as shown in Figure 7. Fig. 7: Anaglyph 3D Red-Cyan Glass V. RESULT AND CONCLUSION 3D images will be obtained only if the Lenses of the cameras are separated by some distance (say 5cm). Otherwise there will be a mismatch in the obtained 3D image. Only when the phase of two images of two cameras is at an angle (less than 45 ), the Images will be in correct order. Therefore, Distance and Angle play a vital role in the formation of 3D image. Hence the 3D image is obtained by taking the Red Component of first Image (Left Camera) and Blue-Green Component of second Image (Right Camera) and merging them with the help of Functional Blocks in the Block Diagram of NI-LabVIEW 2014 software. By using a Red-Cyan 3D Glass, the Resultant 3D Image has been obtained. REFERENCES [1] Henry George Liddell, Robert Scott, A Greek-English Lexicon, on Perseus Digital Library [2] Roll Mann, Wilhelm (1853), "Zwei neue stereoskopische Methoden", Annalen der Physik 166: 186 187. [3] http://www.ni.com/video/2416/ The History of LabVIEW. [4] http://www.ni.com/ni-tutorial-14103-en/ 3D Imaging with NI LabVIEW. [5] NI Developer Community Documents. All rights reserved by www.ijirst.org 112