Skip to content
This repository was archived by the owner on Feb 11, 2023. It is now read-only.

Commit a51436c

Browse files
committed
add GitHub issues/docs
* add testing py3.7 * add gitter badge * update setup
1 parent ccb2bb1 commit a51436c

File tree

7 files changed

+59
-27
lines changed

7 files changed

+59
-27
lines changed

docs/ISSUE_TEMPLATE.md renamed to .github/ISSUE_TEMPLATE/Bug_report.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
17
## Description
28
[Please provide a general introduction to the issue/proposal.]
39

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
**Is your feature request related to a problem? Please describe.**
8+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
9+
10+
**Describe the solution you'd like**
11+
A clear and concise description of what you want to happen.
12+
13+
**Describe alternatives you've considered**
14+
A clear and concise description of any alternative solutions or features you've considered.
15+
16+
**Additional context**
17+
Add any other context or screenshots about the feature request here.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ python:
2121
# - 3.4 # will be deprecated for pandas
2222
- 3.5
2323
- 3.6
24-
# - "3.7-dev"
24+
- 3.7
2525

2626
# See http://docs.travis-ci.com/user/caching/#pip-cache
2727
cache: pip

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ include data_images/others/lena.png
4747
data_images/langerhans_islets/image/gtExoIsl_21.jpg
4848

4949
prune .git
50+
prune .github
5051
prune libs
5152
prune venv
5253
prune build

README.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
[![Build Status](https://travis-ci.org/Borda/pyImSegm.svg?branch=master)](https://travis-ci.org/Borda/pyImSegm)
44
[![codecov](https://codecov.io/gh/Borda/pyImSegm/branch/master/graph/badge.svg?token=BCvf6F5sFP)](https://codecov.io/gh/Borda/pyImSegm)
55
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/48b7976bbe9d42bc8452f6f9e573ee70)](https://www.codacy.com/app/Borda/pyImSegm?utm_source=github.com&utm_medium=referral&utm_content=Borda/pyImSegm&utm_campaign=Badge_Grade)
6+
[![CircleCI](https://circleci.com/gh/Borda/pyImSegm.svg?style=svg&circle-token=a30180a28ae7e490c0c0829d1549fcec9a5c59d0)](https://circleci.com/gh/Borda/pyImSegm)
67
[![Run Status](https://api.shippable.com/projects/5962ea48a125960700c197f8/badge?branch=master)](https://app.shippable.com/github/Borda/pyImSegm)
78
[![Coverage Badge](https://api.shippable.com/projects/5962ea48a125960700c197f8/coverageBadge?branch=master)](https://app.shippable.com/github/Borda/pyImSegm)
8-
[![CircleCI](https://circleci.com/gh/Borda/pyImSegm.svg?style=svg&circle-token=a30180a28ae7e490c0c0829d1549fcec9a5c59d0)](https://circleci.com/gh/Borda/pyImSegm)
99
[![CodeFactor](https://www.codefactor.io/repository/github/borda/pyimsegm/badge)](https://www.codefactor.io/repository/github/borda/pyimsegm)
10+
[![Gitter](https://badges.gitter.im/pyImSegm/community.svg)](https://gitter.im/pyImSegm/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
11+
<!--
12+
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Borda/pyImSegm/master?filepath=notebooks)
13+
-->
1014

15+
---
1116

1217
## Superpixel segmentation with GraphCut regularisation
1318

@@ -25,7 +30,7 @@ Image segmentation is widely used as an initial phase of many image processing t
2530
![input image](figures/insitu7545.jpg)
2631
![segmentation](figures/insitu7545_gc.png)
2732

28-
Borovec J., Svihlik J., Kybic J., Habart D. (2017). **Supervised and unsupervised segmentation using superpixels, model estimation, and Graph Cut.** In: Journal of Electronic Imaging.
33+
Reference: _Borovec J., Svihlik J., Kybic J., Habart D. (2017). **Supervised and unsupervised segmentation using superpixels, model estimation, and Graph Cut.** In: Journal of Electronic Imaging._
2934

3035

3136
## Object centre detection and Ellipse approximation
@@ -41,7 +46,7 @@ An image processing pipeline to detect and localize Drosophila egg chambers that
4146
![estimated centres](figures/insitu7545_center_clusters.jpg)
4247
![ellipse fitting](figures/insitu7545_ellipse_fit.png)
4348

44-
Borovec J., Kybic J., Nava R. (2017) **Detection and Localization of Drosophila Egg Chambers in Microscopy Images.** In: Machine Learning in Medical Imaging.
49+
Reference: _Borovec J., Kybic J., Nava R. (2017) **Detection and Localization of Drosophila Egg Chambers in Microscopy Images.** In: Machine Learning in Medical Imaging._
4550

4651
## Superpixel Region Growing with Shape prior
4752

@@ -57,7 +62,7 @@ Region growing is a classical image segmentation method based on hierarchical re
5762
![growing RG](figures/insitu7545_RG2SP_animation.gif)
5863
![ellipse fitting](figures/insitu7545_RG2SP-gc-mm.png)
5964

60-
Borovec J., Kybic J., Sugimoto, A. (2017). **Region growing using superpixels with learned shape prior.** In: Journal of Electronic Imaging.
65+
Reference: _Borovec J., Kybic J., Sugimoto, A. (2017). **Region growing using superpixels with learned shape prior.** In: Journal of Electronic Imaging._
6166

6267
---
6368

@@ -109,14 +114,13 @@ python setup.py install
109114

110115
---
111116

112-
113117
## Experiments
114118

115119
Short description of our three sets of experiments that together compose single image processing pipeline in this order:
116120

117-
1. **Structure segmentation**
118-
1. **Center detection (and ellipse fitting)**
119-
1. **Region growing with a shape prior**
121+
1. **Semantic (un/semi)supervised segmentation**
122+
1. **Center detection and ellipse fitting**
123+
1. **Region growing with the learned shape prior**
120124

121125

122126
### Annotation tools
@@ -142,7 +146,7 @@ We introduce some useful tools for work with image annotation and segmentation.
142146
-segs ./data_images/drosophila_ovary_slice/segm \
143147
-out ./results/overlap_ovary_segment
144148
```
145-
* **Inpainting** selected labels in segmentation.
149+
* **In-painting** selected labels in segmentation.
146150
```bash
147151
python handling_annotations/run_segm_annot_inpaint.py \
148152
-imgs "./data_images/drosophila_ovary_slice/segm/*.png" \
@@ -156,7 +160,7 @@ We introduce some useful tools for work with image annotation and segmentation.
156160
```
157161

158162

159-
### Structure segmentation
163+
### Semantic (un/semi)supervised segmentation
160164

161165
We utilize (un)supervised segmentation according to given training examples or some expectations.
162166
![vusial debug](figures/visual_img_43_debug.jpg)
@@ -169,7 +173,7 @@ We utilize (un)supervised segmentation according to given training examples or s
169173
--img_type 2d_split \
170174
--slic_size 20 --slic_regul 0.25 --slico
171175
```
172-
* Perform **Unsupervised** segmentation in images given in CSV
176+
* Perform **Un-Supervised** segmentation in images given in CSV
173177
```bash
174178
python experiments_segmentation/run_segm_slic_model_graphcut.py \
175179
-l ./data_images/langerhans_islets/list_lang-isl_imgs-annot.csv -i "" \
@@ -193,6 +197,7 @@ We utilize (un)supervised segmentation according to given training examples or s
193197
-o ./results -n Ovary --img_type 2d_split --visual --nb_workers 2
194198
```
195199
![supervised](figures/imag-disk-20_train.jpg)
200+
* Perform **Semi-Supervised** is using the the supervised pipeline with not fully annotated images.
196201
* For both experiment you can evaluate segmentation results.
197202
```bash
198203
python experiments_segmentation/run_compute-stat_annot-segm.py \
@@ -332,7 +337,6 @@ pip install --user git+https://github.com/Borda/morph-snakes.git
332337

333338
---
334339

335-
336340
## References
337341

338342
For complete references see [BibTex](docs/references.bib).

imsegm/utilities/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import pandas as pd
66

77
# in case you are running on machine without display, e.g. server
8-
if os.environ.get('DISPLAY', '') == '' and matplotlib.rcParams['backend'] != 'agg':
8+
if not os.environ.get('DISPLAY', '') and matplotlib.rcParams['backend'] != 'agg':
99
print('No display found. Using non-interactive Agg backend.')
1010
# https://matplotlib.org/faq/usage_faq.html
1111
matplotlib.use('Agg')

setup.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -58,26 +58,27 @@ def _parse_requirements(file_path):
5858

5959
setup(
6060
name='ImSegm',
61-
version='0.1.4',
61+
version='0.1.5',
6262
url='https://borda.github.io/pyImSegm',
6363

6464
author='Jiri Borovec',
6565
author_email='[email protected]',
6666
license='BSD 3-clause',
67-
description='superpixel image segmentation: '
68-
'(un)supervised, center detection, region growing',
67+
description='superpixel image segmentation:'
68+
' (un)supervised, center detection, region growing',
6969

70-
packages=find_packages(exclude=['docs', 'notebooks',
71-
'handling_annotations',
72-
'experiments_*']),
70+
packages=find_packages(
71+
exclude=['docs', 'notebooks', 'handling_annotations', 'experiments_*']),
7372
cmdclass={'build_ext': BuildExt},
74-
ext_modules=[Extension('imsegm.features_cython',
75-
language='c++',
76-
sources=['imsegm/features_cython.pyx'],
77-
extra_compile_args=['-O3', '-ffast-math',
78-
'-march=native'],
79-
# extra_link_args=['-fopenmp'],
80-
)],
73+
ext_modules=[
74+
Extension('imsegm.features_cython',
75+
language='c++',
76+
sources=['imsegm/features_cython.pyx'],
77+
extra_compile_args=['-O3', '-ffast-math', '-march=native'],
78+
# extra_link_args=['-fopenmp'],
79+
)
80+
],
81+
8182
setup_requires=setup_reqs,
8283
install_requires=install_reqs,
8384
# include_dirs = [np.get_include()],
@@ -96,8 +97,11 @@ def _parse_requirements(file_path):
9697
"Natural Language :: English",
9798
"Operating System :: OS Independent",
9899
"Topic :: Scientific/Engineering :: Image Segmentation",
100+
'Programming Language :: Python :: 2',
99101
'Programming Language :: Python :: 2.7',
102+
'Programming Language :: Python :: 3',
100103
'Programming Language :: Python :: 3.5',
101104
'Programming Language :: Python :: 3.6',
105+
'Programming Language :: Python :: 3.7',
102106
],
103107
)

0 commit comments

Comments
 (0)