首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代做Matlab程序|代写R语言程序|代做Web开发|代写R语言程序
项目预算:
开发周期:
发布时间:
要求地区:
CS 576 – Assignment 2
Solutions due on Monday 10/09/2023 by midday 12 pm noon
Late Policy: None, unless prior arrangement has been made.
PART 1: Theory Questions for practice, no need to submit,
answers will be posted later.
Question1: Color Theory
One of uses of chromaticity diagrams is to find the gamut of colors given the primaries. It
can also be used to find dominant and complementary colors –
Dominant color of a given color D (or dominant wavelength in a color D) is defined as the
spectral color which can be mixed with white light in order to reproduce the desired D
color. Complementary colors are those which when mixed in some proportion create the
color white. Using these definitions and the understanding of the chromaticity diagram that
you have, answer the following.
• In the image alongside find
the dominant wavelength of
color D. Show this
wavelength.
• Do all colors have a
dominant wavelength?
Explain your reasoning.
• Find the color which is
complimentary to the color
C. Show this color
• What colors in RGB color space map
to the equiluminous point E upon projection
into the chromaticity space
Question 2: Color Theory
• The chromaticity diagram in (x, y) represents the normalized color matching
functions X, Y and Z. Prove that
Z = [ (1-x-y)/y ] Y
Here you are tasked with mapping the gamut of a printer to that of a color CRT
monitor. Assume that gamuts are not the same, that is, there are colors in the printer’s
gamut that do not appear in the monitor’s gamut and vice versa. So, in order to print a
color seen on the monitor you choose the nearest color in the gamut of the printer.
Answer the following questions.
• Comment (giving reasons) whether this algorithm will work effectively?
• You have two images – a cartoon image with constant color tones and a real image
with varying color tones? Which image will this algorithm perform better – give
reasons?
• Can you suggest improvements rather than just choosing the nearest color?
Entropy Coding –
Consider a communication system that gives out only two symbols X and Y. Assume that
the parameterization followed by the probabilities are P(X) = x2
and P(Y) = (1-x
2
).
• Write down the entropy function and plot it as a function of x
• From your plot, for what value of x does the Entropy become a minimum? At what
values of x is the Entropy a maximum?
• Although the plot visually gives you the value of x for which the entropy in
maximum, can you now mathematically find out the value(s) for which the entropy
is a maximum?
• Can you do the same for the minimum, that is can you find mathematically prove
the value(s) of x for which the entropy is a minimum?
Generic Compression –
The following sequence of real numbers has been obtained sampling a signal:
5.8, 6.2, 6.2, 7.2, 7.3, 7.3, 6.5, 6.8, 6.8, 6.8, 5.5, 5.0, 5.2, 5.2, 5.8, 6.2, 6.2, 6.2, 5.9, 6.3, 5.2, 4.2, 2.8,
2.8, 2.3, 2.9, 1.8, 2.5, 2.5, 3.3, 4.1, 4.9
This signal is then quantized using the interval [0,8] and dividing it into 32 uniformly distributed
levels.
• What does the quantized sequence look like? For ease of computation, assume that you
placed the level 0 at 0.25, the level 1 at 0.5P, level 2 at 0.75, level 3 at 1.0 and so on. This
should simplify your calculations. Round off any fractional value to the nearest integral
levels
• How many bits do you need to transmit the entire signal?
• If you need to encode the quantized output using DPCM. Compute the successive
differences between the values – what is the maximum and minimum value for the
difference? Assuming that this is your range (ie, ignore first value), how many bits are
required to encode the sequence now?
• What is the compression ratio you have achieved (ignoring first value)?
• Instead of transmitting the differences, you use Huffman coded values for the differences.
How many bits do you need now to encode the sequence? Show all your work and how you
arrived at the final answer
• What is the compression ratio you have achieved now (ignoring first value)?
Programming Part (140 points)
This assignment will help you gain a practical understanding of color representations, color
spaces and data structures normally used in color analysis. Detecting and localizing objects
in an image is a challenging computational task. The overall problem space is complex and
robust solutions in practical scenarios need many computational descriptors and vectors. In
this assignment we will explore using color as one such data point to accomplish this.
While color representation is only one vector (among others) to help address this problem,
we are hopeful that you get a good understanding of color representation and color spaces
which is the intent of this assignment.
You will be given a small library of object images where each image represents an object.
All these images will be in a standard format representing the picture of one colorful object
placed against a green background. You may process these images to make color
representations of objects. You will be given an input image which contains a combination
of objects some of which will be in your library. You need to display your processed output
where you need to outline using a bounding box around the area of pixels that match any
object detected from the library. You are free to extend the display code sample given of
assignment 1 to implement this project. No external libraries or scripting environments are
allowed.
You program will take a few parameters.
• InputImage.rgb – This is the input image that contains a one of more of colorful
objects some of which (or none of which) will be in your library.
• A list of objects object1.rgb object2.rgb …objectn.rgb which will represent your
library of objects.
All the images will be of the same size 640x480.
To invoke your program, we will compile it and run it at the command line as
YourProgram.exe InputImage.rgb object1.rgb object2.rgb …. objectn.rgb
where the number of objects (objectn.rgb) may vary between 1 to n. Here is an example
data set of the input image and library images with an expected output.
Object1.rgb Object2.rgb
Inputimage.rgb
Process and Execution:
The main data structure you will be using is a color histogram. A histogram is a
representation of the distribution of data and the frequency of each type of data. For your
understanding, given a gray scale single channel image, its associated histogram is
illustrated by the example below, where the X axis describes all possible values of a pixel
0-255 and the Y axis gives the number of times the pixel value occurs in the image.
Processed output by program
Object1.rgb
A color representation has three channels R, G and B. You may create three one
dimensional histograms, one for each channel, or alternatively one three-dimensional
histogram. Now that you have understood the histogram representation lets see how to
make use of the this for detecting and localizing objects.
1. Creating histograms for object images.
The input parameters to your program has a list of objects (from a library). All these object
images are given to you against a constant green chroma background. The green chroma
background is given so you can conveniently choose pixels that belong to the object. Create
multiple histograms for each object image given on the command line list.
2. Creating a histogram of the input image
Given the input image, you may assume that it contains object(s). Create a histogram of the
image. At this point you should make note of the fact that the position/orientation/scale of
an object in the input image will be very different from its proportions in the object image.
This will result in the number of pixels that represent the object in the two images be vastly
different, though there is a pattern to the distribution which will be similar in both
histograms.
3. Object detection using histogram matching
Given object histograms and the input image histogram, implement a method that will
allow you detect the presence of an object histogram in the input image histogram
comparing all the channels. Given that color is the main purpose of comparison, you may
want to implement this matching algorithm in a space that ignores luminance eg
• Choice 1 – Convent the image from RGB to YUV, and create histograms for U and
V. Here you may ignore Y and compare the U&V histograms between the input
image and object images. You can read about the color conversion matrix from the
class lecture slides.
• Choice 2 - Convent the image from RGB to HSV, and create histograms for H.
Here you may ignore S & V and compare the H (hue) histogram between the input
image and library image objects. You can read about the color conversion here:
https://en.wikipedia.org/wiki/HSL_and_HSV & https://www.cs.rit.edu/~ncs/color/
4. Object Localization
Once you have detected the presence of the object by comparing histograms, you need to
highlight the pixels in the image that correspond to the object either by highlighting them
or showing a bounding box around them. To achieve this you need to keep track of [x,y]
locations of pixels when forming the histogram.
What should you submit?
• Your source code files, and your project file or makefile, if any – all combined into
a zip archive with your name on the archive. Please do not submit any binaries or
images. We will compile your program and execute our tests accordingly.
• If you need to include a readme.txt file with any special instructions on compilation,
that is fine too.
576_pictures - Google Drive
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代做ceng0013 design of a pro...
2024-11-13
代做mech4880 refrigeration a...
2024-11-13
代做mcd1350: media studies a...
2024-11-13
代写fint b338f (autumn 2024)...
2024-11-13
代做engd3000 design of tunab...
2024-11-13
代做n1611 financial economet...
2024-11-13
代做econ 2331: economic and ...
2024-11-13
代做cs770/870 assignment 8代...
2024-11-13
代写amath 481/581 autumn qua...
2024-11-13
代做ccc8013 the process of s...
2024-11-13
代写csit040 – modern comput...
2024-11-13
代写econ 2070: introduc2on t...
2024-11-13
代写cct260, project 2 person...
2024-11-13
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!