Skip to content

Commit a2b7a58

Browse files
authored
Release v1.2.8, Update package.json (#28)
* Update package.json * #2 Move images to separate directories, Update output/result file to include time genrated in file name * #2 Update output fdir with sample output from test run
1 parent 30e01c4 commit a2b7a58

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
### Original Image (before crop)
1010

11-
![Original Image for Testing](./CellSegmentationExample_01.png)
11+
![Original Image for Testing](./doc/CellSegmentationExample_01.png)
1212

1313
### Sample Edge Detection Script which produces the following result `.png` file.
1414

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7-
| 1.2.5 | :white_check_mark: |
8-
| <= 1.2.4 | :x: |
7+
| 1.2.8 | :white_check_mark: |
8+
| <= 1.2.7 | :x: |
99

1010
## Reporting a Vulnerability
1111

main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from datetime import datetime
12
import skimage as ski
23
import matplotlib.pyplot as plt
34
from scipy import ndimage as ndi
@@ -40,10 +41,11 @@ def set_result_image_layout(self, binary, dilate, fill, grayscale, overlay, red_
4041
axes[3, 0].set_title('7. Dilate Image')
4142
print("Set overlay / final image to output")
4243
axes[3, 1].imshow(overlay, cmap=plt.cm.gray)
43-
axes[3, 1].set_title('8. Overlay Original Image with Segmented Cells From Dilated Image')
44+
axes[3, 1].set_title('8. Overlay Original Image with \n Segmented Cells From Dilated Image')
4445

4546
plt.tight_layout()
46-
output_file_name = 'result.png'
47+
timestamp = datetime.now().strftime("%Y-%m-%d_%H-%M-%S")
48+
output_file_name = f"output/result_{timestamp}.png"
4749
plt.savefig(output_file_name)
4850
print("Image processing complete, please see results at: %s" % os.path.join(os.getcwd(), output_file_name))
4951
plt.show()

main_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
def test_main():
55
try:
6-
subprocess.run(["python", "main.py", "original image cropped.png"])
6+
subprocess.run(["python", "main.py", "input/original image cropped.png"])
77
except Exception as e:
88
pytest.fail(f"An error occurred: {e}")
49 KB
Loading

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "bio-cell-red-edge",
3-
"version": "1.2.7",
3+
"version": "1.2.8",
44
"description": "Biological Cell - Image Processing Script"
55
}

0 commit comments

Comments
 (0)