This document discusses downsampling and upsampling images using pyramids in OpenCV. It introduces image pyramids including Gaussian and Laplacian pyramids. The Gaussian pyramid is used to downsample an image using pyrDown() and upsample using pyrUp(). Code loads an image, allows zooming in and out by pressing keys to call these functions, and displays the original and zoomed images. The OpenCV pyramid functions provide an easy way to perform image zooming.
Build Your Own 3D Scanner: 3D Scanning with Structured LightingDouglas Lanman
Build Your Own 3D Scanner:
3D Scanning with Structured Lighting
http://mesh.brown.edu/byo3d/
SIGGRAPH 2009 Courses
Douglas Lanman and Gabriel Taubin
This course provides a beginner with the necessary mathematics, software, and practical details to leverage projector-camera systems in their own 3D scanning projects. An example-driven approach is used throughout; each new concept is illustrated using a practical scanner implemented with off-the-shelf parts. The course concludes by detailing how these new approaches are used in rapid prototyping, entertainment, cultural heritage, and web-based applications.
Hough Transform: Serial and Parallel ImplementationsJohn Wayne
Abstract – Circle detection has been widely applied in image processing applications. Hough transform, the most popular method of shape detection, normally takes a long time to achieve reasonable results, especially for large images. Such perfor- mance makes it almost impossible to conduct real-time image processing with sequential algorithms on community computers. Recently, OpenCL was developed providing a programming paradigm to explore the tremendous computational power for operations on vectors, matrices and high-dimensional matrices.
In this paper, five different approaches of sequential and parallelized Hough transform algorithms are researched using CPU and GPU execution. Experimental results indicate that the realized Hough transform on GPUs can achieve up to 4000 times speedup over the serial version on CPU. With other efficient image scaling algorithms, real-time circle extraction can be achieved with GPU support.
Weakly supervised semantic segmentation of 3D point cloudArithmer Inc.
Slide for study session given by Dr. Daisuke Sato at Arithmer inc.
It is a summary of methods for semantic segmentation for 3D pointcloud using 2D weakly-supervised learning.
Arithmer株式会社は東京大学大学院数理科学研究科発の数学の会社です。私達は現代数学を応用して、様々な分野のソリューションに、新しい高度AIシステムを導入しています。AIをいかに上手に使って仕事を効率化するか、そして人々の役に立つ結果を生み出すのか、それを考えるのが私たちの仕事です。
Arithmer began at the University of Tokyo Graduate School of Mathematical Sciences. Today, our research of modern mathematics and AI systems has the capability of providing solutions when dealing with tough complex issues. At Arithmer we believe it is our job to realize the functions of AI through improving work efficiency and producing more useful results for society.
Build Your Own 3D Scanner: 3D Scanning with Structured LightingDouglas Lanman
Build Your Own 3D Scanner:
3D Scanning with Structured Lighting
http://mesh.brown.edu/byo3d/
SIGGRAPH 2009 Courses
Douglas Lanman and Gabriel Taubin
This course provides a beginner with the necessary mathematics, software, and practical details to leverage projector-camera systems in their own 3D scanning projects. An example-driven approach is used throughout; each new concept is illustrated using a practical scanner implemented with off-the-shelf parts. The course concludes by detailing how these new approaches are used in rapid prototyping, entertainment, cultural heritage, and web-based applications.
Hough Transform: Serial and Parallel ImplementationsJohn Wayne
Abstract – Circle detection has been widely applied in image processing applications. Hough transform, the most popular method of shape detection, normally takes a long time to achieve reasonable results, especially for large images. Such perfor- mance makes it almost impossible to conduct real-time image processing with sequential algorithms on community computers. Recently, OpenCL was developed providing a programming paradigm to explore the tremendous computational power for operations on vectors, matrices and high-dimensional matrices.
In this paper, five different approaches of sequential and parallelized Hough transform algorithms are researched using CPU and GPU execution. Experimental results indicate that the realized Hough transform on GPUs can achieve up to 4000 times speedup over the serial version on CPU. With other efficient image scaling algorithms, real-time circle extraction can be achieved with GPU support.
Weakly supervised semantic segmentation of 3D point cloudArithmer Inc.
Slide for study session given by Dr. Daisuke Sato at Arithmer inc.
It is a summary of methods for semantic segmentation for 3D pointcloud using 2D weakly-supervised learning.
Arithmer株式会社は東京大学大学院数理科学研究科発の数学の会社です。私達は現代数学を応用して、様々な分野のソリューションに、新しい高度AIシステムを導入しています。AIをいかに上手に使って仕事を効率化するか、そして人々の役に立つ結果を生み出すのか、それを考えるのが私たちの仕事です。
Arithmer began at the University of Tokyo Graduate School of Mathematical Sciences. Today, our research of modern mathematics and AI systems has the capability of providing solutions when dealing with tough complex issues. At Arithmer we believe it is our job to realize the functions of AI through improving work efficiency and producing more useful results for society.
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...Sergio Orts-Escolano
Slides used for the thesis defense of the PhD candidate Sergio Orts-Escolano.
The research described in this thesis was motivated by the need of a robust model capable of representing 3D data obtained with 3D sensors, which are inherently noisy. In addition, time constraints have to be considered as these sensors are capable of providing a 3D data stream in real time.This thesis proposed the use of Self-Organizing Maps (SOMs) as a 3D representation model. In particular, we proposed the use of the Growing Neural Gas (GNG) network, which has been successfully used for clustering, pattern recognition and topology representation of multi-dimensional data. Until now, Self-Organizing Maps have been primarily computed offline and their application in 3D data has mainly focused on free noise models, without considering time constraints. It is proposed a hardware implementation leveraging the computing power of modern GPUs, which takes advantage of a new paradigm coined as General-Purpose Computing on Graphics Processing Units (GPGPU). The proposed methods were applied to different problems and applications in the area of computer vision such as the recognition and localization of objects, visual surveillance or 3D reconstruction.
Seam Carving Approach for Multirate Processing of Digital ImagesIJLT EMAS
This paper presents a new approach called S eam Carving for multirate signal processing of digital images. Increasing and decreasing the sizes of digital images are common place in day-today image processing. These methods involve long procedures and sometimes consume more time for getting implemented. Whereas, using the S eam Carving method eradicates the excess time involved in upsampling and downsampling a digital image considerably as this method is straightforward and simple to implement. This method comes in handy when we are dealing with large medical images and remotely sensed images. This technique is applied on standard images and its performance is analyzed. The entire work was implemented using Matlab R2017a software package.
Image Detection and Count Using Open Computer Vision (Opencv)IJERA Editor
The purpose of this paper is to introduce and quickly make a reader to provide basics of OpenCV (Open Source Computer Vision) without having to go through the lengthy reference manuals and books. OpenCV is actually an open source library for image and video analysis, originally introduced more than decade ago by Intel. The latest major change took place in 2009 (OpenCV2) which includes main changes to the C++ interface. Nowadays the library has >2500 optimized algorithms. It is extensively used around the world, having >2.5M downloads and >40K people in the user group. Regardless of whether one is a novice C++ programmer or a professional software developer, unaware of OpenCV, the content should be interesting mainly for the researchers and graduate students in image processing and computer vision areas.
Introduction to Computer Vision using OpenCVDylan Seychell
This is an introductory deck to computer vision using OpenCV and Python, through examples. This presentation is a step by step codelab through the basic functions of OpenCV.
An Introduction to Computer Science with Java .docxdaniahendric
An Introduction to
Computer Science with Java
Copyright 2013 by C. Herbert, all rights reserved.
Last edited August 21, 2013 by C. Herbert
This document is a draft of a chapter from Computer Science with Java, written by Charles Herbert with the assistance of Craig
Nelson. It is available free of charge for students in Computer Science 111 at Community College of Philadelphia during the Fall
2013 semester. It may not be reproduced or distributed for any other purposes without proper prior permission.
CSCI 111 Chapter 11 Graphics pg. 2
Introduction to
Computer Science with Java
Chapter 11 – Java Graphics
This short chapter describes how programmers can create and manipulate two-dimensional graphics in
Java. It includes creating.
Chapter Learning Outcomes
Upon completion of this chapter students should be able to:
Describe what a graphics processing unit (GPU) is and why GPUs are used
with modern computers.
Describe what the java.awt.Canvas and java.awt.Graphics classes are and
how they are used.
Describe how to do each of the following using the Java Graphics class:
o setting the Color for graphics;
o drawing lines;
o drawing rectangles, and rectangles with rounded corners;
o drawing ovals, circles, and arc of ovals and circles;
o drawing polygons;
o drawing text on the screen.
Describe how to create graphs and charts illustrating business and scientific data.
Create software that uses the Java Graphics class to create figurative and abstract images.
11.1 Overview of Graphics Programming in Java
Graphics programming in Java is done through the use of APIs, including the java.awt.Graphics class and
the Java 2D API that are both part of AWT; Java OpenGL (JOGL), Java 3D (J3D), and Java Advanced
Imaging (JAI), which are official Java APIs; and many third party APIs, such as the Java LightWeight
Game Library (JLWGL). The graphics capabilities in the AWT and the Java OpenGL graphics libraries are
by far the most commonly used.
In this chapter we will focus on creating simple graphics and concepts of graphics programming using
the graphics classes included in AWT, which will allow us to create and manipulate simple graphic
images that can be displayed using the same containers as those used for Swing components.
The graphics capabilities in AWT should work equally as well on Windows, Mac and Linux-based
systems, although specialized coding for certain devices and unique hardware configurations may
require the use of specialized APIs.
CSCI 111 Chapter 11 Graphics pg. 3
Generally, instructions in Java, as in any programming language are fed through the operating system to
the computer’s hardware. In the case of graphics programming, an additional component is often
present – a graphics processing unit. A graphics processing unit (GPU), often called a graphics
accelerator, is a specialized processing unit for rendering high quality im ...
The goal of this report is the presentation of our biometry and security course’s project: Face recognition for Labeled Faces in the Wild dataset using Convolutional Neural Network technology with Graphlab Framework.
Image De-Noising Using Deep Neural Networkaciijournal
Deep neural network as a part of deep learning algorithm is a state-of-the-art approach to find higher level representations of input data which has been introduced to many practical and challenging learning problems successfully. The primary goal of deep learning is to use large data to help solving a given task on machine learning. We propose an methodology for image de-noising project defined by this model and conduct training a large image database to get the experimental output. The result shows the robustness and efficient our our algorithm.
IMAGE DE-NOISING USING DEEP NEURAL NETWORKaciijournal
Deep neural network as a part of deep learning algorithm is a state-of-the-art approach to find higher level representations of input data which has been introduced to many practical and challenging learning problems successfully. The primary goal of deep learning is to use large data to help solving a given task
on machine learning. We propose an methodology for image de-noising project defined by this model and conduct training a large image database to get the experimental output. The result shows the robustness and efficient our our algorithm.
A Three-Dimensional Representation method for Noisy Point Clouds based on Gro...Sergio Orts-Escolano
Slides used for the thesis defense of the PhD candidate Sergio Orts-Escolano.
The research described in this thesis was motivated by the need of a robust model capable of representing 3D data obtained with 3D sensors, which are inherently noisy. In addition, time constraints have to be considered as these sensors are capable of providing a 3D data stream in real time.This thesis proposed the use of Self-Organizing Maps (SOMs) as a 3D representation model. In particular, we proposed the use of the Growing Neural Gas (GNG) network, which has been successfully used for clustering, pattern recognition and topology representation of multi-dimensional data. Until now, Self-Organizing Maps have been primarily computed offline and their application in 3D data has mainly focused on free noise models, without considering time constraints. It is proposed a hardware implementation leveraging the computing power of modern GPUs, which takes advantage of a new paradigm coined as General-Purpose Computing on Graphics Processing Units (GPGPU). The proposed methods were applied to different problems and applications in the area of computer vision such as the recognition and localization of objects, visual surveillance or 3D reconstruction.
Seam Carving Approach for Multirate Processing of Digital ImagesIJLT EMAS
This paper presents a new approach called S eam Carving for multirate signal processing of digital images. Increasing and decreasing the sizes of digital images are common place in day-today image processing. These methods involve long procedures and sometimes consume more time for getting implemented. Whereas, using the S eam Carving method eradicates the excess time involved in upsampling and downsampling a digital image considerably as this method is straightforward and simple to implement. This method comes in handy when we are dealing with large medical images and remotely sensed images. This technique is applied on standard images and its performance is analyzed. The entire work was implemented using Matlab R2017a software package.
Image Detection and Count Using Open Computer Vision (Opencv)IJERA Editor
The purpose of this paper is to introduce and quickly make a reader to provide basics of OpenCV (Open Source Computer Vision) without having to go through the lengthy reference manuals and books. OpenCV is actually an open source library for image and video analysis, originally introduced more than decade ago by Intel. The latest major change took place in 2009 (OpenCV2) which includes main changes to the C++ interface. Nowadays the library has >2500 optimized algorithms. It is extensively used around the world, having >2.5M downloads and >40K people in the user group. Regardless of whether one is a novice C++ programmer or a professional software developer, unaware of OpenCV, the content should be interesting mainly for the researchers and graduate students in image processing and computer vision areas.
Introduction to Computer Vision using OpenCVDylan Seychell
This is an introductory deck to computer vision using OpenCV and Python, through examples. This presentation is a step by step codelab through the basic functions of OpenCV.
An Introduction to Computer Science with Java .docxdaniahendric
An Introduction to
Computer Science with Java
Copyright 2013 by C. Herbert, all rights reserved.
Last edited August 21, 2013 by C. Herbert
This document is a draft of a chapter from Computer Science with Java, written by Charles Herbert with the assistance of Craig
Nelson. It is available free of charge for students in Computer Science 111 at Community College of Philadelphia during the Fall
2013 semester. It may not be reproduced or distributed for any other purposes without proper prior permission.
CSCI 111 Chapter 11 Graphics pg. 2
Introduction to
Computer Science with Java
Chapter 11 – Java Graphics
This short chapter describes how programmers can create and manipulate two-dimensional graphics in
Java. It includes creating.
Chapter Learning Outcomes
Upon completion of this chapter students should be able to:
Describe what a graphics processing unit (GPU) is and why GPUs are used
with modern computers.
Describe what the java.awt.Canvas and java.awt.Graphics classes are and
how they are used.
Describe how to do each of the following using the Java Graphics class:
o setting the Color for graphics;
o drawing lines;
o drawing rectangles, and rectangles with rounded corners;
o drawing ovals, circles, and arc of ovals and circles;
o drawing polygons;
o drawing text on the screen.
Describe how to create graphs and charts illustrating business and scientific data.
Create software that uses the Java Graphics class to create figurative and abstract images.
11.1 Overview of Graphics Programming in Java
Graphics programming in Java is done through the use of APIs, including the java.awt.Graphics class and
the Java 2D API that are both part of AWT; Java OpenGL (JOGL), Java 3D (J3D), and Java Advanced
Imaging (JAI), which are official Java APIs; and many third party APIs, such as the Java LightWeight
Game Library (JLWGL). The graphics capabilities in the AWT and the Java OpenGL graphics libraries are
by far the most commonly used.
In this chapter we will focus on creating simple graphics and concepts of graphics programming using
the graphics classes included in AWT, which will allow us to create and manipulate simple graphic
images that can be displayed using the same containers as those used for Swing components.
The graphics capabilities in AWT should work equally as well on Windows, Mac and Linux-based
systems, although specialized coding for certain devices and unique hardware configurations may
require the use of specialized APIs.
CSCI 111 Chapter 11 Graphics pg. 3
Generally, instructions in Java, as in any programming language are fed through the operating system to
the computer’s hardware. In the case of graphics programming, an additional component is often
present – a graphics processing unit. A graphics processing unit (GPU), often called a graphics
accelerator, is a specialized processing unit for rendering high quality im ...
The goal of this report is the presentation of our biometry and security course’s project: Face recognition for Labeled Faces in the Wild dataset using Convolutional Neural Network technology with Graphlab Framework.
Image De-Noising Using Deep Neural Networkaciijournal
Deep neural network as a part of deep learning algorithm is a state-of-the-art approach to find higher level representations of input data which has been introduced to many practical and challenging learning problems successfully. The primary goal of deep learning is to use large data to help solving a given task on machine learning. We propose an methodology for image de-noising project defined by this model and conduct training a large image database to get the experimental output. The result shows the robustness and efficient our our algorithm.
IMAGE DE-NOISING USING DEEP NEURAL NETWORKaciijournal
Deep neural network as a part of deep learning algorithm is a state-of-the-art approach to find higher level representations of input data which has been introduced to many practical and challenging learning problems successfully. The primary goal of deep learning is to use large data to help solving a given task
on machine learning. We propose an methodology for image de-noising project defined by this model and conduct training a large image database to get the experimental output. The result shows the robustness and efficient our our algorithm.
Image De-Noising Using Deep Neural Networkaciijournal
Deep neural network as a part of deep learning algorithm is a state-of-the-art approach to find higher level
representations of input data which has been introduced to many practical and challenging learning
problems successfully. The primary goal of deep learning is to use large data to help solving a given task
on machine learning. We propose an methodology for image de-noising project defined by this model and
conduct training a large image database to get the experimental output. The result shows the robustness
and efficient our our algorithm.
IEEE EED2021 AI use cases in Computer VisionSAMeh Zaghloul
AI Use Cases in Computer Vision
Introduction and Overview about AI Use Cases in Computer Vision, to answer a basic question: “How Machines See?”, covering Neural Networks, Object detection and recognition, Content-based image retrieval, Object tracking, Image restoration, Scene reconstruction, Computer Vision Tools, Frameworks, Pretrained Models, and Public Train/Test Datasets.
With real-project examples on using Computer Vision in Egyptian Hieroglyph Alphabet recognition, Face Recognition/Matching, in addition to hands-on interactive session on Object/Image Tagging/Annotation on Videos/Images to prepare model training dataset.
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
CFD analysis is incredibly effective at solving mysteries and improving the performance of complex systems!
Here's a great example: At a large natural gas-fired power plant, where they use waste heat to generate steam and energy, they were puzzled that their boiler wasn't producing as much steam as expected.
R&R and Tetra Engineering Group Inc. were asked to solve the issue with reduced steam production.
An inspection had shown that a significant amount of hot flue gas was bypassing the boiler tubes, where the heat was supposed to be transferred.
R&R Consult conducted a CFD analysis, which revealed that 6.3% of the flue gas was bypassing the boiler tubes without transferring heat. The analysis also showed that the flue gas was instead being directed along the sides of the boiler and between the modules that were supposed to capture the heat. This was the cause of the reduced performance.
Based on our results, Tetra Engineering installed covering plates to reduce the bypass flow. This improved the boiler's performance and increased electricity production.
It is always satisfying when we can help solve complex challenges like this. Do your systems also need a check-up or optimization? Give us a call!
Work done in cooperation with James Malloy and David Moelling from Tetra Engineering.
More examples of our work https://www.r-r-consult.dk/en/cases-en/
Quality defects in TMT Bars, Possible causes and Potential Solutions.PrashantGoswami42
Maintaining high-quality standards in the production of TMT bars is crucial for ensuring structural integrity in construction. Addressing common defects through careful monitoring, standardized processes, and advanced technology can significantly improve the quality of TMT bars. Continuous training and adherence to quality control measures will also play a pivotal role in minimizing these defects.
Democratizing Fuzzing at Scale by Abhishek Aryaabh.arya
Presented at NUS: Fuzzing and Software Security Summer School 2024
This keynote talks about the democratization of fuzzing at scale, highlighting the collaboration between open source communities, academia, and industry to advance the field of fuzzing. It delves into the history of fuzzing, the development of scalable fuzzing platforms, and the empowerment of community-driven research. The talk will further discuss recent advancements leveraging AI/ML and offer insights into the future evolution of the fuzzing landscape.
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSEDuvanRamosGarzon1
AIRCRAFT GENERAL
The Single Aisle is the most advanced family aircraft in service today, with fly-by-wire flight controls.
The A318, A319, A320 and A321 are twin-engine subsonic medium range aircraft.
The family offers a choice of engines
Overview of the fundamental roles in Hydropower generation and the components involved in wider Electrical Engineering.
This paper presents the design and construction of hydroelectric dams from the hydrologist’s survey of the valley before construction, all aspects and involved disciplines, fluid dynamics, structural engineering, generation and mains frequency regulation to the very transmission of power through the network in the United Kingdom.
Author: Robbie Edward Sayers
Collaborators and co editors: Charlie Sims and Connor Healey.
(C) 2024 Robbie E. Sayers
Event Management System Vb Net Project Report.pdfKamal Acharya
In present era, the scopes of information technology growing with a very fast .We do not see any are untouched from this industry. The scope of information technology has become wider includes: Business and industry. Household Business, Communication, Education, Entertainment, Science, Medicine, Engineering, Distance Learning, Weather Forecasting. Carrier Searching and so on.
My project named “Event Management System” is software that store and maintained all events coordinated in college. It also helpful to print related reports. My project will help to record the events coordinated by faculties with their Name, Event subject, date & details in an efficient & effective ways.
In my system we have to make a system by which a user can record all events coordinated by a particular faculty. In our proposed system some more featured are added which differs it from the existing system such as security.
Student information management system project report ii.pdfKamal Acharya
Our project explains about the student management. This project mainly explains the various actions related to student details. This project shows some ease in adding, editing and deleting the student details. It also provides a less time consuming process for viewing, adding, editing and deleting the marks of the students.
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfKamal Acharya
The College Bus Management system is completely developed by Visual Basic .NET Version. The application is connect with most secured database language MS SQL Server. The application is develop by using best combination of front-end and back-end languages. The application is totally design like flat user interface. This flat user interface is more attractive user interface in 2017. The application is gives more important to the system functionality. The application is to manage the student’s details, driver’s details, bus details, bus route details, bus fees details and more. The application has only one unit for admin. The admin can manage the entire application. The admin can login into the application by using username and password of the admin. The application is develop for big and small colleges. It is more user friendly for non-computer person. Even they can easily learn how to manage the application within hours. The application is more secure by the admin. The system will give an effective output for the VB.Net and SQL Server given as input to the system. The compiled java program given as input to the system, after scanning the program will generate different reports. The application generates the report for users. The admin can view and download the report of the data. The application deliver the excel format reports. Because, excel formatted reports is very easy to understand the income and expense of the college bus. This application is mainly develop for windows operating system users. In 2017, 73% of people enterprises are using windows operating system. So the application will easily install for all the windows operating system users. The application-developed size is very low. The application consumes very low space in disk. Therefore, the user can allocate very minimum local disk space for this application.
block diagram and signal flow graph representation
downsampling and upsampling of an image using pyramids (pyr up and pyrdown methods)
1. Homework 08, UST
Downsampling and Upsampling of an Image using
Pyramids (pyrUp and pyrDown Methods)
Mr. Saeed Ullah,
Korean Institute of Science & Technology Information (KISTI),
University of Science & Technology (UST)
Saeedonline12@gmail.com
Summary—This report presents Downsampling (Zoom out) and
Upsampling (Zoom In) applied on an image. Tools used in this
project are OpenCV 3.2 Library which is a library used for Computer
Vision, and Visual Studio 2015 (64 bit).
I. INTRODUCTION
In computing, zooming is the ability to zoom in and out a
document or image at specified level. It is usually found in all
most all of the computer applications as it improves
accessibility for people with visual impairment and people
using mobile devices which have a relatively small screen.
Some of the important concepts for this project are:
Image Pyramid
An image pyramid is a collection of images - all arising from a
single original image - that are successively downsampled
until some desired stopping point is reached.
There are two common kinds of image pyramids:
Gaussian pyramid: Used to downsample images
Laplacian pyramid: Used to reconstruct an upsampled image
from an image lower in the pyramid (with less resolution).
In this tutorial I have used the Gaussian pyramid.
Gaussian Pyramid
Imagine the pyramid as a set of layers in which the higher the
layer, the smaller the size.
Every layer is numbered from bottom to top, so
layer (denoted as is smaller than layer ( ).
To produce layer in the Gaussian pyramid, I did the
following steps:
I. Convolve with a Gaussian kernel:
II. Removed every even-numbered row and column. It
can easily be noted that the resulting image will be
exactly one-quarter the area of its predecessor.
Iterating this process on the input
image (original image) produces the entire
pyramid. Now
III. First, upsize the image to twice the original in each
dimension, with the new even rows and columns
filled with zeros ( )
IV. Perform a convolution with the same kernel shown
above (multiplied by 4) to approximate the values of
the “missing pixels”.
These two procedures re implemented by the OpenCV
functions pyrUp and pyrDown.
II. OPENCV SOURCE CODE
/// Load image
src = imread("..datalena.jpg");
// Perform an infinite loop waiting for user
input.
while (true)
{
int c;
c = waitKey(10);
if ((char)c == 27)
{ break; }
if ((char)c == 'i')
{
pyrUp(tmp, dst, Size(tmp.cols * 2, tmp.rows *
2));} else if ((char)c == 'o') {
pyrDown(tmp, dst, Size(tmp.cols / 2, tmp.rows /
2)); }
imshow(window_name, dst);
tmp = dst;}
2. III. RESULTS
Fig. 1. Original Image
Fig. 2. Image with Zoom In Fig. 3. Image with Zoom Out
CONCLUSION: - You can also perform Zoom In and Zoom
Out on an Image by using resize() function or some other user
defined functions but OpenCV comes with built-in powerful
functions i.e. pyrUp() and pyrDown() by using which one can
perform zooming tasks more easily and efficiently.