ASSIGNMENT HELP
$30-40 USD
Pagado a la entrega
Implement a sum-of-difference algorithm (SAD) for an arbitrary input
image* of type byte against macroblocks of fixed size 16x16. Edge
effects should be handled by duplication of the boundary values. Time
your routine and plot a simple graph of runtime vs. image size.
I will grade your code both on proper implementation of algorithm and
organization. You should use common OO practices that we have learned
to this point. Make clear abstractions, restrict data visibility where
appropriate, etc.
check+ target: code the algorithm in java and compare performance
*consider an image to be any byte array of width*height values
More detail: You SAD calculation will take two images as input,
representing frames at successive times (img1 and img2, say) in a
motion picture sequence. The images are just 2d arrays of bytes, with
each byte representing a luminosity value. For our purposes, you can
use real images, or you can just invent the arrays with whatever byte
values. The calculation then proceeds as follows: for each 16x16
macroblock in img1, find the "best match" in img2 around a
neighborhood of size search_range by summing the abs value of
point-by-point differences. For examples, if the sum of differences is
exactly zero for some region of img2, then the two macroblocks match
perfectly. Your routine will need to return the coordinates of the
best match for each macroblock in img1. I'll be very flexible about
how you organize your code. I just want to see some good practices and
creativity.
In pseudocode, you might do something like:
search_range = 16;
loop:
mb = getNextMacroblock(img1);
bestMatchCoord = SADSearch(img2, mb, search_range) //
bestMatches[i++] = bestMatchCoord
end loop
see, e.g. [url removed, login to view]
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Please follow exact directions as above and please do the code with comments on each line, along with final java doc, and do the code from a C student perspective not an A student--thanks
Nº del proyecto: #3386248