Skip to content

Commit a7c50b2

Browse files
EscapedGibbonstropitek
authored andcommitted
docs wip add level demo and fix morph links
1 parent c0fa4d6 commit a7c50b2

File tree

9 files changed

+20
-43
lines changed

9 files changed

+20
-43
lines changed

docs/API reference/Image/Comparison/and.md

Lines changed: 0 additions & 22 deletions
This file was deleted.

docs/API reference/Image/Comparison/or.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { Image } from 'image-js';
2+
3+
export default function level(image: Image) {
4+
return image.level({ outputMin: 0, outputMax: 500, gamma: 0.5 });
5+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import LevelDemo from './level.demo.tsx'
2+
3+
[Check options and parameters of level method](https://image-js.github.io/image-js-typescript/classes/Image.html#level 'github.io link')
4+
5+
<LevelDemo />

docs/API reference/Image/Morphology/Dilate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import DilateDemo from './dilate.demo.tsx'
22

3-
[Check options and parameters of dilate method](https://image-js.github.io/image-js-typescript/classes/Image.html#resize 'github.io link')
3+
[Check options and parameters of dilate method](https://image-js.github.io/image-js-typescript/classes/Image.html#dilate 'github.io link')
44

55
[Dilation](<https://en.wikipedia.org/wiki/Dilation_(morphology)> 'wikipedia link on dilation') is a fundamental morphological operation in image processing that is used to expand the size of foreground objects ([regions of interest](../../../Glossary.md#roiregion-of-interest 'internal link on region of interest')) within an image while preserving their shape and structure. It involves moving a structuring element (also known as a [kernel](../../../Glossary.md#kernel 'internal link on kernel')) over the image and replacing each pixel with the **maximum** value of the pixels covered by the structuring element. Dilation is commonly used for tasks like noise reduction, object enlargement, and feature enhancement.
66

docs/API reference/Image/Morphology/bottomHat.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import BottomHatDemo from './bottomHat.demo.tsx'
22

3+
[Check options and parameters of bottomHat method](https://image-js.github.io/image-js-typescript/classes/Image.html#bottomHat 'github.io link')
4+
35
Similarly to [topHat](./topHat.md 'internal link to top hat'), [bottom hat](https://en.wikipedia.org/wiki/Top-hat_transform 'wikipedia link to top hat') operation computes the difference between two images. However, if top hat was using [opening method](./open.md 'internal link on open method'), bottom hat is using [closing method](./close.md 'internal link on close method').
46
The purpose of bottom hat(or, as it is also called, _black-hat_) is to enhance and extract **darker** regions of the image.
57

docs/API reference/Image/Morphology/close.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import CloseDemo from './close.demo.tsx'
22

3+
[Check options and parameters of close method](https://image-js.github.io/image-js-typescript/classes/Image.html#close 'github.io link')
4+
35
Opposed to [opening](./open.md 'internal link to open method'), [closing process](<https://en.wikipedia.org/wiki/Closing_(morphology)> 'wikipedia link on closing') first [erodes](./Erode.md 'internal link to erode method') an image and only then [dilates](./Dilate.md 'internal link to dilate method') it.
46
It is a useful process for filling small holes in the image, while preserving the shape and size of large holes and objects.
57

docs/API reference/Image/Morphology/open.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import OpenDemo from './open.demo.tsx'
22

3+
[Check options and parameters of open method](https://image-js.github.io/image-js-typescript/classes/Image.html#open 'github.io link')
4+
35
[Opening](<https://en.wikipedia.org/wiki/Opening_(morphology)#:~:text=In%20mathematical%20morphology%2C%20opening%20is,blue%20square%20with%20round%20corners.&text=denote%20erosion%20and%20dilation%2C%20respectively>) process in morphology involves a dilation of an image, followed by its erosion.
46
This process allows removing small objects and thin lines while preserving the shape and size of larger objects.
57

docs/API reference/Image/Morphology/topHat.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
import TopHatDemo from './topHat.demo.tsx'
22

3+
[Check options and parameters of topHat method](https://image-js.github.io/image-js-typescript/classes/Image.html#topHat 'github.io link')
4+
35
In morphology and image processing, [top hat](https://en.wikipedia.org/wiki/Top-hat_transform 'wikipedia link on top hat') is an operation used to enhance or extract small bright regions or details from an image while suppressing the larger surrounding structures.
46
It is the result of subtraction between the result of input image [opening](./open.md 'internal link on open method') and the input image itself.
57
The purpose of bottom hat(or as it is also called _black-hat_) is to enhance and extract **brighter** regions of the image.
8+
69
<TopHatDemo />
710

811
### Parameters and default values

0 commit comments

Comments
 (0)