Skip to content

Commit 698ec0e

Browse files
committed
Docs changes
1 parent aba6e19 commit 698ec0e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ This project implements the following algorithms:
4242
### Calculate image hash
4343

4444
<!-- snippet: CalculateImageHash -->
45-
<a id='snippet-calculateimagehash'></a>
45+
<a id='snippet-CalculateImageHash'></a>
4646
```cs
4747
var hashAlgorithm = new AverageHash();
4848
// or one of the other available algorithms:
@@ -54,22 +54,22 @@ using var stream = File.OpenRead(filename);
5454

5555
ulong imageHash = hashAlgorithm.Hash(stream);
5656
```
57-
<sup><a href='/tests/ImageHash.Test/Examples.cs#L14-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-calculateimagehash' title='Start of snippet'>anchor</a></sup>
57+
<sup><a href='/tests/ImageHash.Test/Examples.cs#L14-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-CalculateImageHash' title='Start of snippet'>anchor</a></sup>
5858
<!-- endSnippet -->
5959

6060
### Calculate image similarity
6161
Note that to calculate the image similarity, both image hashes should have been calculated using the same hash algorihm.
6262

6363
<!-- snippet: CalculateSimilarity -->
64-
<a id='snippet-calculatesimilarity'></a>
64+
<a id='snippet-CalculateSimilarity'></a>
6565
```cs
6666
// calculate the two image hashes
6767
ulong hash1 = hashAlgorithm.Hash(imageStream1);
6868
ulong hash2 = hashAlgorithm.Hash(imageStream2);
6969

7070
double percentageImageSimilarity = CompareHash.Similarity(hash1, hash2);
7171
```
72-
<sup><a href='/tests/ImageHash.Test/Examples.cs#L35-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-calculatesimilarity' title='Start of snippet'>anchor</a></sup>
72+
<sup><a href='/tests/ImageHash.Test/Examples.cs#L35-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-CalculateSimilarity' title='Start of snippet'>anchor</a></sup>
7373
<!-- endSnippet -->
7474

7575
You can also take a look at [DotNet APIs](http://dotnetapis.com/pkg/CoenM.ImageSharp.ImageHash).

src/ImageHash/PackageDescription.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ See [github](https://www.github.com/coenm/ImageHash/) for more information.
66
## Calculate image hash
77

88
<!-- snippet: CalculateImageHash -->
9-
<a id='snippet-calculateimagehash'></a>
9+
<a id='snippet-CalculateImageHash'></a>
1010
```cs
1111
var hashAlgorithm = new AverageHash();
1212
// or one of the other available algorithms:
@@ -18,20 +18,20 @@ using var stream = File.OpenRead(filename);
1818

1919
ulong imageHash = hashAlgorithm.Hash(stream);
2020
```
21-
<sup><a href='/tests/ImageHash.Test/Examples.cs#L14-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-calculateimagehash' title='Start of snippet'>anchor</a></sup>
21+
<sup><a href='/tests/ImageHash.Test/Examples.cs#L14-L26' title='Snippet source file'>snippet source</a> | <a href='#snippet-CalculateImageHash' title='Start of snippet'>anchor</a></sup>
2222
<!-- endSnippet -->
2323

2424
## Calculate image similarity
2525
Note that to calculate the image similarity, both image hashes should have been calculated using the same hash algorihm.
2626

2727
<!-- snippet: CalculateSimilarity -->
28-
<a id='snippet-calculatesimilarity'></a>
28+
<a id='snippet-CalculateSimilarity'></a>
2929
```cs
3030
// calculate the two image hashes
3131
ulong hash1 = hashAlgorithm.Hash(imageStream1);
3232
ulong hash2 = hashAlgorithm.Hash(imageStream2);
3333

3434
double percentageImageSimilarity = CompareHash.Similarity(hash1, hash2);
3535
```
36-
<sup><a href='/tests/ImageHash.Test/Examples.cs#L35-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-calculatesimilarity' title='Start of snippet'>anchor</a></sup>
36+
<sup><a href='/tests/ImageHash.Test/Examples.cs#L35-L43' title='Snippet source file'>snippet source</a> | <a href='#snippet-CalculateSimilarity' title='Start of snippet'>anchor</a></sup>
3737
<!-- endSnippet -->

0 commit comments

Comments
 (0)