daniel4lee / practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Homework 1 of Computer Vision course

Preview

preview

Introduction

intro pic

  1. Open Image: Clicking this button to load image files. After selecting a image file, it would be displayed at the right side of window, #17. Note that if the image size is larger than (1400,960), it would be scaled to smaller size. But remaining the same proportion.

  2. Save Image: The button provide the function to save current displaying image into selection path.

  3. Angle: the angle of rotation.

  4. Rotating: Turn the image Anticlockwise rotation with the angle of #12.

  5. Ratio: the degree of zoom out.

  6. Scaling: Zoom the image out with the #14 ratio.

    Note that if after zooming out, the image is still larger than the window size(1400,960), the displaying image would not bechanged. But, actually, the effect is applied correctly.

  7. Original image: return the image which displayed on #17 to the unprocessed form.

  8. Sigma of Gaussian: The parameter refers to the sigma in 2d gaussian function.

    And, the Gaussian blur would use the gaussian function to make the desire filter.

  9. Kernerl size: The parameter refers to the size of Gaussian blur filter. If set this to 3, the program would adopt a 3*3 filter to the image.

  10. Apply: After setting the #3 and #4 parameters, push this button to apply the Gaussian blur effect on the image file.

  11. threshold: This parameter is used to filter out the lower gray scale value of magnitude of gradient, which may be seen as noise.

  12. magnitude or direction of gradient: This combo box can choose to apply magnitude or direction of gradient. The example results are as below.

  13. Apply: After setting the #6 and #7, push this button to apply sobel operator on the image file.

  14. structure tensor window: This parameter refers to the window size w in the math equation.

    If set this to 3, the program would adopt a 3*3 window size to compute the corner response of the image.

  15. window size of NMS: This window size is using for NMS operation. It means that in the assign window size, only a pixel of max corner response could be show up. If set this to 0 or 1, NMS would not be apply.

  16. Apply: After setting the #9 and #10, push this button to apply structure tensor on the image file.

Usage

python3 main.py

To ensure the correct of porgram the process should follow the order as below:

rotation/scaling -> gaussian blur -> Sobel edge detect -> structure tensor

Image

Default Image Location

The default location is as same as the program file. However it is also able to load files in other directories through dialog window.

Support Image Format

The application could load image files with *.png, *.tif, *.bmp, *jpg extension.

Dependencies

Reference

About


Languages

Language:Python 100.0%