1. Homepage
  2. Programming
  3. Assignment: Extended depth of field image

Assignment: Extended depth of field image

Engage in a Conversation
EDoFExtended depth of field imageGaussian pyramid reduceLaplacian pyramid

Assignment CourseNana.COM

Write a Java application program whose main method is in the file named EDoF.java that computes an extended depth of field image. CourseNana.COM

Normal images have a limited depth of field. Extended depth of field is an approach in which a stack of images captured at different focal settings are combined to reconstruct an image that is (ideally) sharp everywhere. This method is related to the depth from focus technique covered in the module. CourseNana.COM

From a given stack compute the extended depth of field image using the Laplacian pyramid approach described in this paper (note the typos in equation 7): “Pyramid methods in image processing”, Adelson, E. H., Anderson, C. H., Bergen, J. R., Burt, P. J., Ogden, J. M., RCA Engineer, 29(6), pp. 33-41, 1984. CourseNana.COM

This involves the following steps: CourseNana.COM

  1. Construct a Gaussian pyramid for each image in the stack use this simple approach: at each level decimate the image by taking the average (boxcar filter) of a 2 × 2 window. The widths and heights of images in the Gaussian pyramid reduce by a half at each level. CourseNana.COM

  2. Construct the Laplacian pyramid for each image in the stack (use bilinear interpolation for the upsampling). CourseNana.COM

  3. Combine the Laplacian pyramids into a single Laplacian pyramid by taking the maximum magnitude responses. CourseNana.COM

  4. Reconstruct the EDoF image from the merged Laplacian pyramid. CourseNana.COM

Each image will be a grayscale image in the PGM format, and the maximum number of images in the stack will be 40. CourseNana.COM

This basic version of EDoF.java must take one command line argument which is the name of the file containing the newline separated filenames of the input stack of PGM images (there is no naming convention for these filenames, but they will be ordered according to the focal settings). CourseNana.COM

EDoF.java outputs the following images with the following filenames: CourseNana.COM

  • first.pgm The first image in the stack. CourseNana.COM

  • pyramidGaussian.pgm The Gaussian pyramid constructed from the first image in the stack display the pyramid as a single tiled image with the levels translated horizontally (see the Sample Outputs at the end for examples). CourseNana.COM

  • mean.pgm Constructed by averaging the bottom (coarsest) images in the Gaussian pyramid from all the images in the stack. CourseNana.COM

  • pyramidLaplacian.pgm The Laplacian pyramid constructed from the first image in the stack display the pyramid as a single tiled image with the levels translated horizon- tally. Sinec the Laplacian is a signed value you should rescale the output intensities to the full range 0255. CourseNana.COM

  • pyramidLaplacianMax.pgm The final Laplacian pyramid constructed by combining the stack of Laplacian pyramids. CourseNana.COM

  • edof.pgm The extended depth of field result. CourseNana.COM

    See the last page for examples of applying EDoF.java
    Extend the above extended depth of field scheme. There are many possibilities, and some
    CourseNana.COM

examples are given below. You can also get some inspiration from the paper: “A novel method for multi-focus image fusion”, Bilcu, R. C., Alenius, S., Vehvilainen, M., ICIP, pp. 1525-1528, 2009. Note that for full marks a non trivial extension needs to be provided. CourseNana.COM

  • Alternative schemes for combining the stack of Laplacian pyramids. CourseNana.COM

  • Add an additional step to attempt to improve the spatial consistency of the above com- CourseNana.COM

    bination step. CourseNana.COM

  • Extend the scheme to process colour images (and not just process the RGB channels independently!). CourseNana.COM

  • Alternative decimation schemes (e.g. more levels in the pyramids). CourseNana.COM

  • Pre-processing the image stack to improve the quality. CourseNana.COM

    Note (applying to the above tasks): CourseNana.COM

  1. This assignment does not involve writing a GUI. CourseNana.COM

  2. ApartfromtheimageI/OcodethatIprovideyoushouldwriteallthecodeyourself.E.g. CourseNana.COM

    do not use Java’s built-in image processing classes or use third-party libraries. CourseNana.COM

  3. Some test images are provided for you on Learning Central to help develop and test your CourseNana.COM

    program. CourseNana.COM

  4. NOTE:Iwillperformextensivetestsonyourprogram,usingmorethanjustthetestdata CourseNana.COM

    I have provided. CourseNana.COM

You must supply a report on your submission which provides a short written description (12 pages of text; plus diagrams, screenshots etc.) conveying all the appropriate information to demonstrate its operation and explaining your extension of the basic algorithm. Include your student number in the report. (10% weight) CourseNana.COM

Learning Outcomes Assessed CourseNana.COM

Be aware of the applications of computer vision.
Understand the technical details of a range of techniques for image manipulation. CourseNana.COM

Criteria for assessment CourseNana.COM

Credit will be awarded according to the correct functioning of the following components of the code. CourseNana.COM

1. 10% reading image stack and outputting first image
2. 20%
computing the Gaussian pyramids and displaying the tiled image 3. 10% computing the mean of the bottoms of the Gaussian pyramids
4. 10%
computing Laplacian pyramids
5. 10%
combining the stack of Laplacian pyramids
6. 10%
reconstruction from the Laplacian pyramid
7. 20%
Extended EDoF scheme
8. 10%
Report. CourseNana.COM

Factor Weakness indicator CourseNana.COM

Approach Does not adopt a professional or defensible approach CourseNana.COM

Excellence indicator CourseNana.COM

Adopts appropriate methods with full justification for the choices made CourseNana.COM

Insight and Little or no insight understanding and understanding CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
EDoF代写,Extended depth of field image代写,Gaussian pyramid reduce代写,Laplacian pyramid代写,EDoF代编,Extended depth of field image代编,Gaussian pyramid reduce代编,Laplacian pyramid代编,EDoF代考,Extended depth of field image代考,Gaussian pyramid reduce代考,Laplacian pyramid代考,EDoFhelp,Extended depth of field imagehelp,Gaussian pyramid reducehelp,Laplacian pyramidhelp,EDoF作业代写,Extended depth of field image作业代写,Gaussian pyramid reduce作业代写,Laplacian pyramid作业代写,EDoF编程代写,Extended depth of field image编程代写,Gaussian pyramid reduce编程代写,Laplacian pyramid编程代写,EDoFprogramming help,Extended depth of field imageprogramming help,Gaussian pyramid reduceprogramming help,Laplacian pyramidprogramming help,EDoFassignment help,Extended depth of field imageassignment help,Gaussian pyramid reduceassignment help,Laplacian pyramidassignment help,EDoFsolution,Extended depth of field imagesolution,Gaussian pyramid reducesolution,Laplacian pyramidsolution,