-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd43f09
commit 7a368d3
Showing
181 changed files
with
3,136 additions
and
1,936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,67 @@ | ||
Imports System.Drawing | ||
#Region "Microsoft.VisualBasic::e4e658f066eb6328a95646a96d5975ce, Data_science\DataMining\DensityQuery\SLIC.vb" | ||
|
||
' Author: | ||
' | ||
' asuka ([email protected]) | ||
' xie ([email protected]) | ||
' xieguigang ([email protected]) | ||
' | ||
' Copyright (c) 2018 GPL3 Licensed | ||
' | ||
' | ||
' GNU GENERAL PUBLIC LICENSE (GPL3) | ||
' | ||
' | ||
' This program is free software: you can redistribute it and/or modify | ||
' it under the terms of the GNU General Public License as published by | ||
' the Free Software Foundation, either version 3 of the License, or | ||
' (at your option) any later version. | ||
' | ||
' This program is distributed in the hope that it will be useful, | ||
' but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
' GNU General Public License for more details. | ||
' | ||
' You should have received a copy of the GNU General Public License | ||
' along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
|
||
|
||
' /********************************************************************************/ | ||
|
||
' Summaries: | ||
|
||
|
||
' Code Statistics: | ||
|
||
' Total Lines: 174 | ||
' Code Lines: 131 (75.29%) | ||
' Comment Lines: 19 (10.92%) | ||
' - Xml Docs: 73.68% | ||
' | ||
' Blank Lines: 24 (13.79%) | ||
' File Size: 7.04 KB | ||
|
||
|
||
' Class SLIC | ||
' | ||
' Constructor: (+2 Overloads) Sub New | ||
' | ||
' Function: InitializeCenters, Mean, MeasureSegments, ReadImagePixels | ||
' | ||
' Sub: IterateClustering | ||
' | ||
' Class SLICPixel | ||
' | ||
' Properties: cluster, color, x, y | ||
' | ||
' Function: DistanceTo | ||
' | ||
' /********************************************************************************/ | ||
|
||
#End Region | ||
|
||
Imports System.Drawing | ||
Imports Microsoft.VisualBasic.ApplicationServices.Terminal.ProgressBar.Tqdm | ||
Imports Microsoft.VisualBasic.Imaging.BitmapImage | ||
Imports Microsoft.VisualBasic.Linq | ||
|
@@ -171,4 +234,4 @@ Public Class SLICPixel | |
Dim colorDistance As Single = color.EuclideanDistance(p2.color) | ||
Return spatialDistance / regionSize + colorDistance | ||
End Function | ||
End Class | ||
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.