Write a processing program to perform histogram operations

Assignment Help Computer Engineering
Reference no: EM131875150

Assignment: Point processing and histograms

Write a Processing program to perform histogram operations on an image. Make the image filename a global String variable. Perform histogram stretch and equalization on the image. Allow the user to display images and histograms as follows: ‘1' will display the original image; ‘2' will display the stretched image (histogram stretch, implemented as discussed in class); ‘3' will display the equalized image (histogram equalization, implemented as discussed in class); ‘h' will display the image of the original histogram; ‘s' will display the stretched histogram; ‘e' will display the equalized histogram. You may also want to use ‘c' to display the cumulative histogram for debugging, but that is your choice.

When displaying histograms, display the red, green, and blue channels separately, side by side or vertically above one another; if the image is grayscale, you may choose to automatically discover that and display only one histogram. Display the pixel values and counts in the display window as the mouse moves over the histogram.

Extend your program to allow a user to select a rectangle of an image using the mouse, then modify only the selected area. While selecting, you'll draw a rectangle from (startX, startY) to (mouseX, mouseY)-set rectMode to CORNERS, use noFill(), and set the stroke color to one that shows up. Stretch the histogram to use full dynamic range over the selected part of the image anddisplay it when the mouse is released; use ‘r' to display the histogram on the regionally modified image. You may assume the user will only select a region on the original image and that regional modifications will NOT be cumulative-in other words, if the user selects a region, the resulting image will be displayed when the mouse is released. If the user selects a different region, mouse release will display the new image and the previous change is lost. You needn't display the histogram of only the selected region; of course, the complete image histogram, displayed by ‘r', will reflect the changed pixel values.

You may choose to convert your image to YCbCr format and to do the histogram operations on the Y (luminance) channel. In that case, convert the image to YCbCr, modify the Y channel, then convert back to RGB for display. Because the YCbCr channels all fit in the range 0-255, the values can be stored in RGB pixels.

Provide user documentation to describe how to use your program; this can be sparse and could be internal-all the relevant operations are probably prescribed above, but document them anyway to confirm that's how they work. Also, document any additional features not prescribed above and document any known bugs.

Attachment:- Histogram-Equalization-and-Stretching.rar

Reference no: EM131875150

Questions Cloud

Describes the moral issues surrounding the implementation : Describes the moral issues surrounding the implementation of a code of ethics in the technology/cyber world.
Analyze the first four functional requirements : Analyze the 1st four functional requirements above (FR 1-4) and determine the number of test cases needed to provide 100% path coverage.
Conduct an interview with an older individual experience : Be sure to explain Erikson's theory as you describe it. How did they resolve the various stages? Where do you believe they fit now?
What can be done to effectively document : What can be done to effectively document the relational database system solution that you are proposing to the retail store?
Write a processing program to perform histogram operations : Write a Processing program to perform histogram operations on an image. Make the image filename a global String variable.
Prepare a mips asm program that requests for three numbers : Prepare a MIPS asm program that requests for three numbers from the user. Month, Day, and Year. You may assume that a valid date is given.
Identify problems and potential problems at the company : Identify problems and potential problems at the company, and proposal action plans to deal with existing problems and potential problems;
Writing a c program to find ten most frequently used words : Writing a C program to find ten most frequently used words in a given file. The executable fileshould take as argument the name of a file and outputs ten lines.
Write the content of the array to a second file : Use a second loop to sum the values stored in the array after the prices of all the books have been read. Write the content of the array to a second file.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd