Skip to content

Commit 4f45f5e

Browse files
EscapedGibbonstropitek
authored andcommitted
docs: fix minor errors for consistency
1 parent 430ef3c commit 4f45f5e

22 files changed

+46
-34
lines changed

docs/Features/Comparison/add.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This method works only with images.
55
:::
66

7-
Method called `add`, opposed to [`subtract`](./subtract.md 'internal link on subtract'), takes another Image and makes an addition between each respective pixel.
7+
Add method, opposed to [subtract](./subtract.md 'internal link on subtract'), takes another Image and makes an addition between each respective pixel value.
88
It works like this:
99

1010
```ts
@@ -14,7 +14,7 @@ let mask = new Image(3, 3, {
1414
let mask2 = new Image(3, 3, {
1515
data: new Uint8Array([1, 133, 133, 133, 0, 0, 50, 0, 1]),
1616
});
17-
mask = mask.subtract(mask2);
17+
mask = mask.add(mask2);
1818
// expect mask to equal [2,255,255,255,255,122,1,51,2]
1919
```
2020

docs/Features/Comparison/hypotenuse.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $$
1010
NewValue = \sqrt{Value1^2+Value2^2}
1111
$$
1212

13-
Where $$Value1$$ is a value of the pixel in the first image and $$Value2$$ is the value in the second one. The goal is to identify which points in one image correspond to points in another image, which is essential for various computer vision and image processing applications. Calculating hypotenuse value between two pixels is also necessary for image aligning and feature matching.
13+
Where $$Value1$$ is a value of the pixel in the first image and $$Value2$$ is the value of the second one. The goal is to identify which points in one image correspond to points in another image, which is essential for various computer vision and image processing applications. Calculating hypotenuse value between two pixels is also necessary for image aligning and feature matching.
1414

1515
### Parameters and default values
1616

docs/Features/Comparison/subtract.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ Both masks must have the same size for compatibility reasons. Images must have t
2020

2121
### Parameters and default values
2222

23-
- [`other`](https://image-js.github.io/image-js-typescript/classes/Mask.html#subtract 'github.io link')
23+
- `other`
2424

25-
- [`options`](https://image-js.github.io/image-js-typescript/classes/Mask.html#subtract 'github.io link')
25+
- `options`
2626

2727
#### Options
2828

docs/Features/Filters/Blur.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import BlurDemo from './blur.demo.tsx'
33
[Check options and parameters of blur method](https://image-js.github.io/image-js-typescript/classes/Image.html#blur 'link on github io')
44

55
:::caution
6-
This method only works with images.
6+
This method works only with images.
77
:::
88

99
Blur, also known as average blur or box blur, is a simple image processing technique used to reduce noise and smooth out images. It involves replacing the color value of a pixel with the average color value of its neighboring pixels within a specified window or kernel. This process effectively blurs the image and reduces high-frequency noise.

docs/Features/Filters/Derivative.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import GradientDemo from './gradient.demo.tsx'
44
[Check options and parameters of derivative method](https://image-js.github.io/image-js-typescript/classes/Image.html#derivativeFilter 'link on github io')
55

66
:::caution
7-
This method only works with images.
7+
This method works only with images.
88
:::
99

1010
Derivative filter is a special case of a gradient filter, therefore it uses gradient algorithm. However, the key difference are the kernels used in this very algorithm. In ImageJS there are three distinguished kernels: [Sobel](https://en.wikipedia.org/wiki/Sobel_operator 'wikipedia link on Sobel kernel'), [Scharr](https://en.wikipedia.org/wiki/Sobel_operator#Alternative_operators 'wikipedia link on Scharr operator') and [Prewitt](https://en.wikipedia.org/wiki/Prewitt_operator 'wikipedia link on Prewitt kernel').

docs/Features/Filters/Gradient.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import GradientDemo from './gradient.demo.tsx'
77
[Check options and parameters of gradient method](https://image-js.github.io/image-js-typescript/functions/gradientFilter.html 'link on github.io')
88

99
:::caution
10-
This method only works with images.
10+
This method works only with images.
1111
:::
1212

1313
Gradient filter or specifically[ a gradient-based edge detection filter](https://en.wikipedia.org/wiki/Graduated_neutral-density_filter 'Wikipedia link on gradient filter'), is an image processing technique used to highlight edges and boundaries within an image by emphasizing areas of rapid intensity change. The gradient filter operates by calculating the rate of change of pixel intensities across the image. When there's a rapid transition from one intensity level to another, [the convolution operation](../../Glossary.md#convolution 'glossary link on convolution') captures this change as a high gradient magnitude value, indicating the presence of an edge. It's a fundamental step in various computer vision and image analysis tasks, such as edge detection, object recognition, and image segmentation.

docs/Features/Filters/Invert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import InvertDemo from './invert.demo.tsx'
22

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

5-
[The invert filter](<https://en.wikipedia.org/wiki/Negative_(photography)> 'wikipedia link on negative filtering') is an image processing technique used to reverse the color values of an image, creating a negative or "inverted" version of the original. In this process, the darkest areas become the lightest, and the lightest areas become the darkest, while the midtones are adjusted accordingly. The invert filter is a simple but effective way to create visual contrast and produce interesting effects.
5+
[Invert filter](<https://en.wikipedia.org/wiki/Negative_(photography)> 'wikipedia link on negative filtering') is an image processing technique used to reverse the color values of an image, creating a negative or "inverted" version of the original. In this process, the darkest areas become the lightest, and the lightest areas become the darkest, while the midtones are adjusted accordingly. The invert filter is a simple but effective way to create visual contrast and produce interesting effects.
66

77
<InvertDemo />
88

docs/Features/Filters/Median.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import MedianDemo from './median.demo.tsx'
33
[Check options and parameters of median method](https://image-js.github.io/image-js-typescript/classes/Image.html#medianFilter 'github.io link')
44

55
:::caution
6-
This method only works with images.
6+
This method works only with images.
77
:::
88

9-
[A median filter](https://en.wikipedia.org/wiki/Median_filter 'wikipedia link on median filter') is a digital image processing technique used to reduce noise in an image by replacing each pixel's value with the median value of neighboring pixels. It's particularly effective at removing ["salt and pepper"](https://en.wikipedia.org/wiki/Salt-and-pepper_noise 'Wikipedia link on salt and pepper effect') noise.
9+
[Median filter](https://en.wikipedia.org/wiki/Median_filter 'wikipedia link on median filter') is a digital image processing technique used to reduce noise in an image by replacing each pixel's value with the median value of neighboring pixels. It's particularly effective at removing ["salt and pepper"](https://en.wikipedia.org/wiki/Salt-and-pepper_noise 'Wikipedia link on salt and pepper effect') noise.
1010

1111
<MedianDemo />
1212

docs/Features/Filters/Pixelate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PixelateDemo from './pixelate.demo.tsx'
33
[Check options and parameters of pixelate method](https://image-js.github.io/image-js-typescript/classes/Image.html#pixelate 'github.io link')
44

55
:::caution
6-
This method only works with images.
6+
This method works only with images.
77
:::
88

99
[Pixelate filter](https://en.wikipedia.org/wiki/Pixelization 'Wikipedia link on pixelization concept') is a digital image processing technique used to reduce the level of detail in an image by replacing groups of pixels with a single, average color value. This creates a mosaic-like effect where the image appears to be composed of larger, blocky elements rather than fine details.

docs/Features/Filters/and.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Check options and parameters of and method](https://image-js.github.io/image-js-typescript/classes/Mask.html#and 'github.io link')
22

33
:::caution
4-
This method only works with masks.
4+
This method works only with masks.
55
:::
66

77
`and` method performs a [logical conjunction](https://en.wikipedia.org/wiki/Logical_conjunction 'wikipedia link on logical conjunction') between bits of two masks.
@@ -21,6 +21,12 @@ Masks must have the same size for compatibility reasons.
2121

2222
### Parameters and default values
2323

24-
- [`mask`](https://image-js.github.io/image-js-typescript/classes/Mask.html#and 'github.io link')
24+
- `mask`
2525

26-
- [`options`](https://image-js.github.io/image-js-typescript/classes/Mask.html#and 'github.io link')
26+
- `options`
27+
28+
#### Options
29+
30+
| Property | Required | Default value |
31+
| -------------------------------------------------------------------------------------- | -------- | ------------- |
32+
| [`out`](https://image-js.github.io/image-js-typescript/interfaces/AndOptions.html#out) | no | - |

0 commit comments

Comments
 (0)