Skip to content

Commit 208f051

Browse files
authored
docs: fix LaTeX(MathJax) commands and markdown table alignments (#196)
* fix right-aligned markdown table * fix latex (mathjax) command
1 parent 72bfc76 commit 208f051

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

docs/src/api_comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This table is certainly not complete, and additions/corrections are
99
welcome.
1010

1111
| Operation | JuliaImages | scikit-image + NumPy | Matlab (ImageProcessing + ComputerVision) |
12-
|---------------------------------------|-------------------------------------------|-----------------------------------|-------------------------------------------|
12+
| :------------------------------------ | :---------------------------------------- | :-------------------------------- | :---------------------------------------- |
1313
| **Input/output** | | | |
1414
| Read image file | [`load`](@ref) | `imread` | `imread` |
1515
| Write image file | [`save`](@ref) | `imsave` | `imwrite` |

docs/src/function_reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ entropy
323323
### General Distances
324324

325325
| type name | convenient syntax | math definition |
326-
| ----------------------- | -------------------------- | --------------------------------- |
326+
| :---------------------- | :------------------------- | :-------------------------------- |
327327
| Euclidean | `euclidean(x, y)` | `sqrt(sum((x - y) .^ 2))` |
328328
| SqEuclidean | `sqeuclidean(x, y)` | `sum((x - y).^2)` |
329329
| Cityblock | `cityblock(x, y)` | `sum(abs(x - y))` |
@@ -340,7 +340,7 @@ entropy
340340
#### Image-specific Distances
341341

342342
| Distance type | Convenient syntax | References |
343-
|----------|------------------------|------------|
343+
| :------------ | :---------------- | :--------- |
344344
| `Hausdorff` and `ModifiedHausdorff` | `hausdorff(imgA,imgB)` and `modified_hausdorff(imgA,imgB)` | Dubuisson, M-P et al. 1994. A Modified Hausdorff Distance for Object-Matching. |
345345
| `CIEDE2000` | `ciede2000(imgA,imgB)` and `ciede2000(imgA,imgB; metric=DE_2000())` | Sharma, G., Wu, W., and Dalal, E. N., 2005. The CIEDE2000 color‐difference formula. |
346346

docs/src/pkgs/segmentation/index.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -212,20 +212,20 @@ with region ``A_1`` containing a single pixel of the image. Let an intermediate
212212
of the algorithm consist of a set of identified regions ``A_1, A_2, ..., A_n``.
213213
Let ``T`` be the set of all unallocated pixels which borders at least one of these
214214
regions. The growing process involves selecting a point ``z \in T`` and region ``A_j``
215-
where ``j \in [ \, 1,n ] \,`` such that
215+
where ``j \in [ 1,n ] `` such that
216216

217217
```math
218-
\delta ( \, z, A_j ) \, = min_{x \in T, k \in [ \, 1,n ] \, } \{ \delta ( \, x, A_k ) \, \}
218+
\delta(z, A_j)= \min_{x \in T, k \in [ 1,n ] } \{ \delta(x, A_k)\}
219219
```
220-
where `` \delta ( \, x, A_i ) \, = | img ( \, x ) \, - mean_{y \in A_i} [ \, img ( \, y ) \, ] \, |``
220+
where `` \delta(x, A_i)= | \operatorname{img}(x) - \operatorname{mean}_{y \in A_i} [ \operatorname{img}(y) ] |``
221221

222-
If ``\delta ( \, z, A_j ) \,`` is less than `threshold` then the pixel `z` is added to ``A_j``.
222+
If ``\delta(z, A_j)`` is less than `threshold` then the pixel `z` is added to ``A_j``.
223223
Otherwise we choose the most similar region ``\alpha`` such that
224224

225225
```math
226-
\alpha = argmin_{A_k} \{ \delta ( \, z, A_k) \, \}
226+
\alpha = \argmin_{A_k} \{ \delta(z, A_k) \}
227227
```
228-
If ``\delta ( \, z, \alpha ) \,`` is less than `threshold` then the pixel `z` is added to ``\alpha``.
228+
If ``\delta(z, \alpha)`` is less than `threshold` then the pixel `z` is added to ``\alpha``.
229229
If neither of the two conditions is satisfied, then the pixel is assigned a new region ``A_{n+1}``.
230230
After assignment of ``z``, we update the statistic of the assigned region. The algorithm halts when
231231
all the pixels have been assigned to some region.
@@ -245,8 +245,8 @@ Segmented Image with:
245245
number of labels: 698
246246
```
247247

248-
| Threshold | Output | Compression percentage|
249-
| ------------- | ----------| -------------------------|
248+
| Threshold | Output | Compression percentage |
249+
| :-------: | :----: | :--------------------: |
250250
| Original [(source)](http://maxpixel.freegreatpicture.com/static/photo/1x/Plant-Wood-Tissue-Leaves-Nature-Green-Tree-2387626.jpg) | ![tree](assets/tree.jpg) | 0 % |
251251
| 0.05 | ![tree_seg1](assets/tree_seg1.jpg) | 60.63% |
252252
| 0.1 | ![tree_seg2](assets/tree_seg2.jpg) | 71.27% |
@@ -309,10 +309,10 @@ and assigns it to a new segment ``A_1``. Label count `lc` is assigned 1. Then it
309309
of the image and for every pixel, it computes the difference measure `diff_fn`
310310
between the pixel and its left neighbor, say ``\delta_{l}`` and between the pixel and
311311
its top neighbor, say ``\delta_{t}``. Four cases arise:
312-
1) ``\delta_{l}`` >= `threshold` and ``\delta_{t}`` < `threshold` : We can say that the point has similar intensity to that its top neighbor. Hence, we assign the point to the segment that contains its top neighbor.
313-
2) ``\delta_{l}`` < `threshold` and ``\delta_{t}`` >= `threshold` : Similar to case 1, we assign the point to the segment that contains its left neighbor.
314-
3) ``\delta_{l}`` >= `threshold` and ``\delta_{t}`` >= `threshold` : Point is significantly different from its top and left neighbors and is assigned a new label ``A_{lc+1}`` and `lc` is incremented.
315-
4) ``\delta_{l}`` < `threshold` and ``\delta_{t}`` < `threshold` : In this case, we merge the top and left semgents together and assign the point under consideration to this merged segment.
312+
1) ``\delta_{l} \ge`` `threshold` and ``\delta_{t} <`` `threshold` : We can say that the point has similar intensity to that its top neighbor. Hence, we assign the point to the segment that contains its top neighbor.
313+
2) ``\delta_{l} <`` `threshold` and ``\delta_{t} \ge`` `threshold` : Similar to case 1, we assign the point to the segment that contains its left neighbor.
314+
3) ``\delta_{l} \ge`` `threshold` and ``\delta_{t} \ge`` `threshold` : Point is significantly different from its top and left neighbors and is assigned a new label ``A_{\text{lc}+1}`` and `lc` is incremented.
315+
4) ``\delta_{l} <`` `threshold` and ``\delta_{t} <`` `threshold` : In this case, we merge the top and left segments together and assign the point under consideration to this merged segment.
316316

317317
This algorithm segments the image in just two passes (one for segmenting and other for
318318
merging), hence it is very fast and can be used in real time applications.
@@ -353,7 +353,7 @@ image is split into two across every dimension and the smaller parts are
353353
segmented recursively. This procedure generates a region tree which can
354354
be used to create a segmented image.
355355

356-
**Time Complexity:** ``O(n*log(n))`` where ``n`` is the number of pixels
356+
**Time Complexity:** ``O(n \log(n))`` where ``n`` is the number of pixels
357357

358358
###### Demo
359359

@@ -396,8 +396,8 @@ for medical imaging like in the soft segmentation of brain tissue model.
396396
Note that both Fuzzy C-means and K-means have an element of randomness, and it's possible
397397
to get results that vary considerably from one run to the next.
398398

399-
**Time Complexity:** ``O(n*C^2*iter)`` where ``n`` is the number of pixels, ``C`` is
400-
number of clusters and ``iter`` is the number of iterations.
399+
**Time Complexity:** ``O(n \cdot C^2 \cdot \text{iter})`` where ``n`` is the number of pixels, ``C`` is
400+
number of clusters and ``\text{iter}`` is the number of iterations.
401401

402402
###### Demo
403403

@@ -425,7 +425,7 @@ See the documentation in [Clustering.jl](https://github.com/JuliaStats/Clusterin
425425
**Output with pixel intensity = cluster center intensity * membership of pixel in that class**
426426

427427
| Magenta petals | Greenish Leaves | White background |
428-
|----------------|-----------------|------------------|
428+
| :------------: | :-------------: | :--------------: |
429429
| ![SegmentedImage1](assets/flower_s1.jpg) |![SegmentedImage2](assets/flower_s2.jpg) | ![SegmentedImage3](assets/flower_s3.jpg) |
430430

431431
#### Watershed

0 commit comments

Comments
 (0)