|
@@ -170,15 +170,15 @@ In today's laboratory experience, you will design and implement simple image pro
|
170
|
170
|
|
171
|
171
|
4. The provided code already has the functionality of the buttons in the graphical user interface programmed. You do NOT have to change anything in this code, but we provide the following explanations so you can know a little about how the buttons work. In the `mainwindow.cpp` file, the `lblOriginalImage` and `lblEditedImage` objects correspond to the parts of the interface that identify the original image and the processed image. The buttons
|
172
|
172
|
|
173
|
|
- * `btnLoadImage`
|
174
|
|
- * `btnSaveImage`
|
175
|
|
- * `btnInvertThreshold`
|
176
|
|
- * `btnFlipImageHorizontally`
|
177
|
|
- * `btnFlipImageVertically`
|
178
|
|
- * `btnGreyScaleFilter`
|
179
|
|
- * `btnRevertImage`
|
180
|
|
-
|
181
|
|
- are connected to functions so when a button in the interface is pressed, a certain task is carried out. For example, when you press the `LoadImage` button, a window will appear for you to select the file with the image you want to edit, which when read, the image is assigned to `originalImage`. The slider `thresholdSlider` can assume values between 0 and 255.
|
|
173
|
+ * `btnLoadImage`
|
|
174
|
+ * `btnSaveImage`
|
|
175
|
+ * `btnInvertThreshold`
|
|
176
|
+ * `btnFlipImageHorizontally`
|
|
177
|
+ * `btnFlipImageVertically`
|
|
178
|
+ * `btnGreyScaleFilter`
|
|
179
|
+ * `btnRevertImage`
|
|
180
|
+
|
|
181
|
+ are connected to functions so when a button in the interface is pressed, a certain task is carried out. For example, when you press the `LoadImage` button, a window will appear for you to select the file with the image you want to edit, which when read, the image is assigned to `originalImage`. The slider `thresholdSlider` can assume values between 0 and 255.
|
182
|
182
|
|
183
|
183
|
|
184
|
184
|
5. Compile and run the program. Test the buttons for `Load New Image` and `Flip Image Horizontally` with the images that you brought so you can validate if the buttons are working.
|