Skip to content

Commit c6b6b62

Browse files
committed
change screenshots
1 parent bbf9d21 commit c6b6b62

6 files changed

Lines changed: 17 additions & 18 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# An Image Processing Widget
1+
# An Extensible Image Processing Widget
22

33
GUI to explore OpenCV image processing functions.
44

@@ -29,10 +29,10 @@ Download latest release from [here](https://github.com/fukuda-lab-saga/image-pro
2929
- Double-click the left mouse button to activate ROI.
3030
- Double-click the right mouse button the activate crosshairs.
3131

32-
Drag and drop image onto widget. All read images are converted to 8-bit.
33-
![Screenshot 1](/screenshots/screenshot1.png?raw=true "Screenshot 1")
34-
32+
Drag and drop image onto widget.
3533
Select process and adjust parameters.
34+
35+
![Screenshot 1](/screenshots/screenshot1.png?raw=true "Screenshot 1")
3636
![Screenshot 2](/screenshots/screenshot2.png?raw=true "Screenshot 2")
3737
![Screenshot 3](/screenshots/screenshot3.png?raw=true "Screenshot 3")
3838

@@ -41,6 +41,6 @@ Select process and adjust parameters.
4141
The plugins activated are listed after `process_plugins =` and `roi_plugins =` in the config file and are seperated by
4242
commas.
4343
Add and remove these as needed. Available plugins can be found in the plugins folder and their names are shown in the
44-
.image-processing-plugin files.
44+
.image-processing-plugin" files.
4545

46-
There are 2 read modes (`grayscale` and `color`) and 2 display modes (`auto` and `8-bit`). Change these as needed.
46+
There are 2 display modes (`auto` and `8-bit`). Change these as needed.

image_processing_widget/funcs/misc_funcs.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,14 @@ def strtobool(val):
2424

2525

2626
def imread(filename: Path, flags):
27+
if not filename.is_file():
28+
raise ValueError("No such file.")
2729
data = np.fromfile(str(filename), dtype=np.uint8)
2830
img = cv.imdecode(data, flags)
2931
if img is not None:
3032
return img
3133
else:
32-
raise ValueError("Invalid file.")
34+
raise ValueError("Could not read file.")
3335

3436

3537
def imwrite(filename: Path, img):

poetry.lock

Lines changed: 8 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

screenshots/screenshot1.png

172 KB
Loading

screenshots/screenshot2.png

-55.7 KB
Loading

screenshots/screenshot3.png

8.59 KB
Loading

0 commit comments

Comments
 (0)