/ChangeImageContrast

Windows desktop application which allows to change contrast of any photo.

Primary LanguageC#

Image contrast editor

Windows desktop application which allows to change contrast of any photo.

Table of contents

General info

The goal of this application was to implement an alghoritm, which changes image contrast, in both c# and asm and compares their execution times. So as to examine alghoritms execution times a comparison was made between images of diffrent quality. Each alghoritm (asm, c#, optimized c#) performed image contrast processing on the same photos using the same contrast factor value. Immediately, it turned out that the fastest alghoritm was the one written in assembly. Alghoritm implemented in c# with Microsoft optimization turned on was almost two times slower. Shockingly, when optimization was turned off, it took almost 10 times more time for c# alghoritm to perform the same image processing compared to asm. Detailed results of the comparison are below in images section.

Images

How to use

  1. Start the program.
  2. Choose which implementation of image contrast changing alghoritm you desire (by default its asm).
  3. Choose an image which contrast you want to change.
  4. Choose value of contrast factor.
  5. Click calculate button.
  6. Optionally, you can save your photo.

Technologies used

  • c#
  • asm
  • xml

Programming environment

  • Visual studio

Project status

Finished