Professional Documents
Culture Documents
ANNA UNIVERSITY
CHENNAI
May 2020
ANNA UNIVERSITY, CHENNAI
BONAFIDE CERTIFICATE
ABSTRACT
splitting approach leads to linewise segmented jet estimation problems for which we
propose an exact and efficient solver. The proposed method has the combined
initialization procedure, and it is highly parallelizable. The experiments show that the
algorithm has lower computation times and that the solutions often have lower
ACKNOWLEDGEMENT
First and Foremost I thank the God Almighty for his grace to enable me to complete
this project work a successful one.
Dr.K.DHINESH KUMAR, M.E., Ph.D., for his support and freedom throughout my course.
Mrs.M.JULIE EMERALD JIJU MCA., M.Tech, M.Phil. Department of MCA, for her
valuable help and encouragements towards my project.
It is my great pleasure to acknowledge our parents and family members for their
prayers and generous support extended towards the successful completion of this project.
V
ABSTRACT III
ACKNOWLEDGEMENT IV
LIST OF TABLES VIII
LIST OF FIGURES IX
LIST OF ABBREVIATIONS X
1 INTRODUCTION
2 SYSTEM ANALYSIS AND DESIGN
4 SYSTEM IMPLEMETATION
4.1 Modules
4.1.1 Piecewise Jet Formation
5 SYSTEM DESIGN
6 LANGUAGE DESCRIPTION
6.1 Introduction
6.9 M Files
7 SYSTEM TESTING
7.1 Introduction
VII
8 SCREEN SHOTS
9 CONCLUSION
APPENDIX XII
REFERENCES XIV
VIII
III
LIST OF TABLES
6.5.4 Workspace
NO
Model
of Multipliers
XI
III
APPENDIX
Then the analogue of the splitting (10) in single channel case becomes
The Lagrangian of (34) which corresponds to (13) in the univariate case is now understood
w.r.t. the Lagrange multipliers
2) Univariate Subproblems:
The resulting univariate subproblems in (23) for a fixed line Q have now the prototypical
form
(JQ)∗
XIII
The least squares formulation of (36) on the discrete “interval” (ql,..., qr) is
CHAPTER 1
INTRODUCTION
An active field in image partitioning are various methods. The idea is to model
the partitioning as the result of an optimization problem which imposes regularity on
both regions and boundaries. A popular various approach to image partitioning is the
piecewise constant Mumford-Shah model. The central idea is to partition the image
domain such that the total boundary length of all segments is small and such that the
induced piecewise constant function approximates the image well. The model is
frequently applied for unsupervised segmentation of color images, depth images,
texture images, and medical images, to mention only some examples. However, the
piecewise constant model assumption is often restrictive: many types of images possess
linear trends within their segments: consider for example the sky in a landscape image,
or an object with an illumination gradient in a conventional image; further, the bias in a
magnetic resonance image, as well as depth and motion fields show linear trends.
Another possibility to account for color gradients in the image is the piecewise
smooth Mumford-Shah model which penalizes the deviations from piecewise constant
functions controlled by an additional hyper parameter β (instead of enforcing piecewise
constancy). However, the piecewise smooth model comes with side-effects: the
estimated discontinuity set is in general not the boundary set of a partition as it can
have open ends (so-called “crack tips”), and it suffers from the gradient limit effect, i.e.
the creation of spurious discontinuities at steep slopes. Even though linear trends are
better representable by the piecewise smooth Mumford-Shah model than by the
piecewise constant variant, approximating them increases its energy (in contrast to the
piecewise affine variant).
Therefore, the solution space of the piecewise smooth model does not contain
genuine piecewise affine functions but only approximations of them. Depending on the
application, the principal interest in solving (1) can be to find an optimal partition P*,
which may be used for segmentation or super pixilation’s as for instance in; or one can
be interested in finding an optimal piecewise affine function u∗, which may be used for
the regularization of flow fields as in or for the guidance of image filters. The focus of
this paper is the efficient computation of the partition.
1.2 Denoising
In the limiting case α → ∞ in, the smoothness constraint is enforced more and
more leading to the well-known piecewise constant approximation, also known as the
minimal partition problem. The first constraint in reduces to just σ t i (x, t) ≥ −(t −
fi(x))2. Only one parameter λ remains in the model, which controls the overall length of
the interfaces between the regions where u is constant. The standard approach to
compute such a multi-region partitioning is by alternatingly determining a small
number of color models (with fixed regions) and optimizing for the regions (with fixed
color models). Of course, for such iterative approaches results are invariably
suboptimal and will depend on the choice of the initial color models. In contrast, the
proposed convex relaxation allows to jointly optimize over the regions of constancy
and the corresponding colors in these regions in a single convex optimization problem.
In particular, the algorithm determines the appropriate number of color models
depending on the input image and the scale parameter λ.
1.4 Joint Disparity and Segmentation
However, the piecewise smooth model comes with side-effects: the estimated
discontinuity set is in general not the boundary set of a partition as it can have open
ends (so-called “crack tips”), and it suffers
from the gradient limit effect, i.e. the creation of spurious discontinuities
at steep slopes. Even though linear trends are better representable by the piecewise
smooth Mumford-Shah model than by the piecewise constant
variant, approximating them increases its energy (in contrast to the piecewise affine
variant). Therefore the solution space of the piecewise smooth model does not contain
genuine piecewise affine functions but only approximations of them.
CHAPTER 2
ADVANTAGES
It directly yields a partition P;
It does not need an initialization procedure;
Average computation time
It is highly parallelizable.
3 .3 SYSTEM SPECIFICATION
3.3.1 SOFTWARE REQURIEMENT
Operating system : Windows XP/7.
Coding Language : Matlab
Tool : Matlab 2018a
3.3.2 HARDWARE REQURIEMENT
System : core i3.
Hard Disk : 540 GB.
Floppy Drive : 1.44 Mb.
Monitor : 22 VGA Colour.
Mouse : Logitech.
Ram : 2 GB.
CHAPTER 4
SYSTEM IMPLEMETATION
4.1 MODULES
Piecewise Jet Formation
Discretization Jet Formation
Image Splitting
Line wise Segmentation
4.1.1 Piecewise Jet Formation
A key point in our derivation is the formulation of problem (1) in terms of Taylor
jets. The Taylor jet of a function u is a field of Taylor polynomials, i.e., with every
point x in the domain _ of u we associate the truncated Taylor expansion of u in the
point x up to a certain order k, where k is called the order of the jet. In the following,
we will need the (first order) jet J u of a function u at the point x _ _ which we define
J u(x)(z) := Txu(z)
where Txu is the (first order) Taylor polynomial of u centred at x and where z _
R2 is the argument of the polynomial. Summing up, the jet J u : _ _ _1 is a function on
with values in the space _1 of bivariate polynomials of order one in particular, J u(x)
is a polynomial, and J u(x)(z) denotes the point evaluation of the polynomial J u(x)
at the point z _ R2. We note that the variables z in the above definition are shifted
versions of the ones typically used for the jet formulation. The reason for our choice
here is that we will later need the notion of equality of the polynomials in the way
defined above; this will become clear in the following. It is a basic but important
observation that u is piecewise affine linear if and only if the jet J u is a piecewise
constant field.
4.1.2 Discretization Jet Formation
We may adopt a common way of discretizing the length penalty term in,
The terms on the right hand side count the number of changes of the field J w.r.t. to a
direction ds _ Z2; that is,
Since two bivariate first-order polynomials are equal if and only if their
evaluation in three non-collinear points in R2.
4.1.4 Linewise Segmentation
The computational effort of the proposed algorithm is dominated by solving the
linewise jet problems. To obtain an efficient overall algorithm, we here propose a fast
solver.
Let Q be an arbitrary line in direction d, parameterized as Q = (q1, q2 . . . , qL) with ql
= q1 + (l − 1)d. Our first crucial observation is that (23) essentially is a one-
dimensional segmented least squares problem on the line Q. Solving it consists of two
Here E I denotes the residual sum of squares of the best approximating bivariate linear
polynomial p with p(x) = _x1+_x2+_ on the “interval” I = {ql , ql+1, . . . , qr } of the
data.
CHAPTER 5
SYSTEM DESIGN
5.1 BLOCK DIAGRAM
5.2 DATA FLOW DIAGRAM
5.2.1 Level 0
Piecewise Jet Formation
Input
Reformulation
Output Image
5.2.2 Level 1
Discretization Jet Formation
Input 𝛾 values
Assign 𝛾 = 0.3
PCW smooth
Input 𝛽 = 10
Smoothen Image
5.2.4 Level 3
Linewise segmentation
Input 𝛾 = 0.4
PCW smooth
CHAPTER 6
LANGUAGE DESCRIPTION
6.1 INTRODUCTION
The name MATLAB stands for MATrix LABoratory. MATLAB was written
originally to provide easy access to matrix software developed by the LINPACK
(linear system package) and EISPACK (Eigen system package) projects. MATLAB
is a high-performance language for technical computing. It integrates computation,
visualization, and programming environment. MATLAB has many advantages
compared to conventional computer languages (e.g., C, FORTRAN) for solving
technical problems. MATLAB is an interactive system whose basic data element is
an array that does not require dimensioning. Specific applications are collected in
packages referred to as toolbox. There are tool boxes for signal processing, symbolic
computation, control theory, simulation, optimization, and several other fields of
applied science and engineering.
• Curve Fitting
• Various other special functions
6.3 FEATURES OF MATLAB
• Control systems
• Test and measurement
• Computational finance
• Computational biology
MATLAB development IDE can be launched from the icon created on the
desktop. The main working window in MATLAB is called the desktop. When
MATLAB is started, the desktop appears in its default layout.
Workspace - The workspace shows all the variables created and/or imported from
files.
Fig.6.5.4.workspace
Command History - This panel shows or rerun commands that are entered at the
command line.
Fig.6.5.5 command history
Operator Purpose
+ Plus; addition operator.
- Minus, subtraction
.* Array and
multiplication
multiplication operator.
^ Scalar and matrix
.^ Array exponentiation
operator.
exponentiation
operator.
operator.
\ Left-division operator.
/ Right-division
.\ Array left-division
operator.
Array right-division
operator.
./ operator.
Table 6.6 MATLAB used operators and special characters.
6.7 COMMANDS
Commands Purpose
Command Purpose
Disp Displays content for an
array or
Fscanf Read formatted data from a
Format Control
string. screen-display
Fprintf Performs
format. formatted write to
file.
Scripts:
Script files are program files with .m extension. In these files, you write series
of commands, which you want to execute together. Scripts do not accept inputs and
do not return any outputs. They operate on data in the workspace.
Functions:
Functions files are also program files with .m extension. Functions can
accept inputs and return outputs. Internal variables are local to the function.
Creating and Running Script File:
To create scripts files, you need to use a text editor. You can open the
MATLAB editor in two ways:
You can directly type edit and then the filename (with .m extension).
Edit or
edit<file name>
MATLAB provides 15 fundamental data types. Every data type stores data
that is in the form of a matrix or array. The size of this matrix or array is a
minimum of 0-by-0 and this can grow up to a matrix or array of any size.
The following table shows the most commonly used data types in MATLAB:
defined class
Java classes Object constructed from a java
Class
Logical Logical variables are 1or 0,
represent true & false respectively
SYSTEM TESTING
7.1 INTRODUCTION
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable
results. An example of system testing is the configuration oriented system
integration test. System testing is based on process descriptions and flows,
emphasizing pre-driven process links and integration points.
Test Results: All the test cases mentioned above passed successfully. No
defects encountered.
SCREEN SHOTS
CHAPTER 9
CONCLUSION
REFERENCES