This repository has been archived by the owner on Mar 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathone.HTML
125 lines (107 loc) · 2.44 KB
/
one.HTML
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<!DOCTYPE html>
<html>
<head>
<title>K-means Clustering</title>
<style>
body {
font-family: Arial, sans-serif;
}
.container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
margin-top: 20px;
}
.input-container {
display: flex;
flex-direction: column;
align-items: center;
margin: 20px;
}
.input-container label {
margin-bottom: 10px;
}
.input-container input {
width: 200px;
padding: 5px;
margin-bottom: 10px;
}
.preview-container {
display: flex;
justify-content: center;
align-items: center;
margin: 20px;
}
.preview-image {
max-width: 400px;
max-height: 400px;
border: 1px solid #ccc;
padding: 10px;
}
.table-container {
display: flex;
justify-content: center;
align-items: center;
margin: 20px;
}
.table {
border-collapse: collapse;
}
.table th,
.table td {
border: 1px solid #ccc;
padding: 8px;
text-align: center;
}
.result-container {
display: flex;
justify-content: center;
align-items: center;
margin: 20px;
}
.result-image {
width: 550px;
height: 500px;
border: 1px solid #ccc;
padding: 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="input-container">
<label for="file-input">Select Image File:</label>
<input type="file" id="file-input">
</div>
<div class="input-container">
<label for="k-input">Enter k value:</label>
<input type="number" id="k-input" min="1">
</div>
<div class="button-container">
<button id="start-button">Start Clustering</button>
</div>
<div class="preview-container">
<img id="preview-image" class="preview-image">
</div>
<div class="table-container">
<table id="original-table" class="table">
<caption>Original Image</caption>
</table>
<table id="result-table" class="table">
<caption></caption>
</table>
</div>
<div class="result-container">
<div id="result-image1" class="result-image"></div>
</div>
<div class="result-container">
<div id="result-image2" class="result-image"></div>
</div>
</div>
<script type="text/javascript" src="https://fastly.jsdelivr.net/npm/[email protected]/dist/echarts.min.js"></script>
<script src="./kmeans2.js">
// JavaScript code for k-means clustering goes here
</script>
</body>
</html>