-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.html
More file actions
284 lines (244 loc) · 10.1 KB
/
plugins.html
File metadata and controls
284 lines (244 loc) · 10.1 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>ComPRePS | Plugins</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.css">
<style>
.plugin-details {
display: none; /* Hide all details sections by default */
}
.plugin-details.active {
display: block; /* Show the active section */
}
.back-btn {
display: inline-block;
margin-top: 1rem;
padding: 0.6rem 1.2rem;
background-color: #1F4068;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-size: 1rem;
transition: background-color 0.3s ease;
}
.back-btn:hover {
background-color: #194592;
}
</style>
</head>
<body>
<!-- Header -->
<header class="navbar">
<div class="navbar-container">
<div class="logo">
<h1 class="project-name"><a href="/home.html">ComPRePS</a></h1>
</div>
<nav class="nav">
<a href="/plugins.html">Plugins</a>
<a href="/about.html">About Us</a>
<a href="https://app.smartsheet.com/b/form/d27767f494de441787128587141f8e36" target="_blank">Feedback</a>
</nav>
</div>
</header>
<!-- Plugins Section -->
<section id="plugins-overview" class="features-section">
<div class="container">
<h2 class="section-heading">Explore Plugins</h2>
<p>Discover powerful AI-based tools to enhance your digital pathology workflows.</p>
<div class="features-grid">
<div class="feature-card">
<h3><a href="#" onclick="showDetails('multiCompartment')">Multi Compartment Segmentation</a></h3>
<p>Analyze kidney WSIs by segmenting six compartments, leveraging Detectron2-based AI models.</p>
</div>
<div class="feature-card">
<h3><a href="#" onclick="showDetails('ifta')">IFTA and Glomerulosclerosis Segmentation</a></h3>
<p>Automate the detection and quantification of Interstitial Fibrosis, Tubular Atrophy, and Glomerulosclerosis.</p>
</div>
<div class="feature-card">
<h3><a href="#" onclick="showDetails('ptc')">PTC Segmentation</a></h3>
<p>Quantify PTC density, size, and shape to gain insights into microvascular changes.</p>
</div>
<div class="feature-card">
<h3><a href="#" onclick="showDetails('featureExtraction')">Feature Extraction</a></h3>
<p>Extract key structural and morphological features for advanced clinical insights.</p>
</div>
</div>
</div>
</section>
<section id="multiCompartment" class="plugin-details">
<div class="container">
<div class="details-content">
<div class="details-text">
<h3 class="section-heading">
<a href="https://github.com/SarderLab/Multi-Compartment-Segmentation" target="_blank" style="color: #1F4068; text-decoration: none;">
Multi Compartment Segmentation
</a>
</h3>
<p>Leverage our <a href="https://github.com/facebookresearch/detectron2" target="_blank">Detectron2</a>-based model to analyze kidney WSIs by identifying and segmenting six compartments: cortical interstitium, medullary interstitium, non-sclerotic glomerulus, sclerotic glomerulus, tubule, and artery/arteriole.</p>
<a href="#" class="back-btn" onclick="showOverview()">Back to Plugins</a>
</div>
<div class="details-image">
<img src="media/multi_compartment.gif" alt="Multi Compartment Segmentation" onclick="openLightbox(this)">
</div>
</div>
</div>
</section>
<section id="ifta" class="plugin-details">
<div class="container">
<div class="details-content">
<div class="details-text">
<h3 class="section-heading">
<a href="https://github.com/SarderLab/IFTA_segmentation" target="_blank" style="color: #1F4068; text-decoration: none;">
IFTA and Glomerulosclerosis Segmentation
</a>
</h3>
<p>The IFTA Segmentation tool automates the detection and quantification of Interstitial Fibrosis, Tubular Atrophy (IFTA), and Glomerulosclerosis in kidney tissue. This tool enables efficient and accurate segmentation from renal biopsy images.</p>
<a href="#" class="back-btn" onclick="showOverview()">Back to Plugins</a>
</div>
<div class="details-image">
<img src="media/IFTA.png" alt="IFTA Segmentation" onclick="openLightbox(this)">
</div>
</div>
</div>
</section>
<section id="ptc" class="plugin-details">
<div class="container">
<div class="details-content">
<div class="details-text">
<h3 class="section-heading">
<a href="https://github.com/SarderLab/PTC_segmentation/" target="_blank" style="color: #1F4068; text-decoration: none;">
PTC Segmentation
</a>
</h3>
<p>Peritubular Capillary (PTC) segmentation quantifies PTC characteristics such as density, size, and shape in kidney biopsies, providing insights into microvascular changes and disease progression.</p>
<a href="#" class="back-btn" onclick="showOverview()">Back to Plugins</a>
</div>
<div class="details-image">
<img src="media/PTC.png" alt="PTC Segmentation" onclick="openLightbox(this)">
</div>
</div>
</div>
</section>
<section id="featureExtraction" class="plugin-details">
<div class="container">
<div class="details-content">
<div class="details-text">
<h3 class="section-heading">
<a href="https://github.com/SarderLab/CombinedFeatureExtraction" target="_blank" style="color: #1F4068; text-decoration: none;">
Feature Extraction
</a>
</h3>
<p>Our feature extraction module identifies and segments key kidney structures (glomeruli, tubules, arteries) using deep learning. It then quantifies key metrics (diameters, areas, densities) and correlates these with clinical parameters like age, serum creatinine, and eGFR for better understanding of kidney morphology and disease implications.</p>
<a href="#" class="back-btn" onclick="showOverview()">Back to Plugins</a>
</div>
<div class="details-image">
<img src="media/violin_plot.gif" alt="Feature Extraction" onclick="openLightbox(this)">
</div>
</div>
</div>
</section>
<footer class="site-footer">
<div class="container">
<p>© CMIL Lab, 2024. All rights reserved.</p>
<nav class="footer-nav">
<a href="/home.html">Home</a>
<a href="/plugins.html">Plugins</a>
<a href="/about.html">About Us</a>
<a href="https://app.smartsheet.com/b/form/d27767f494de441787128587141f8e36" target="_blank">Feedback</a>
</nav>
</div>
</footer>
<div id="lightbox" class="lightbox">
<span class="close" onclick="closeLightbox()">×</span>
<div id="zoom-container">
<img class="lightbox-content" id="lightbox-img" src="" alt="Zoomable View">
</div>
</div>
<script>
function showDetails(sectionId) {
document.querySelectorAll('.plugin-details').forEach(section => section.classList.remove('active'));
document.getElementById('plugins-overview').style.display = 'none';
document.getElementById(sectionId).classList.add('active');
}
function showOverview() {
document.querySelectorAll('.plugin-details').forEach(section => section.classList.remove('active'));
document.getElementById('plugins-overview').style.display = 'block';
}
let currentScale = 1;
let currentTranslateX = 0;
let currentTranslateY = 0;
let isDragging = false;
let startX = 0, startY = 0;
const lightboxImg = document.getElementById('lightbox-img');
const zoomContainer = document.getElementById('zoom-container');
function openLightbox(image) {
const lightbox = document.getElementById('lightbox');
// Set the lightbox image source to the clicked image source
lightboxImg.src = image.src;
// Reset zoom and position
currentScale = 1;
currentTranslateX = 0;
currentTranslateY = 0;
updateTransform();
// Show the lightbox
lightbox.style.display = 'block';
}
function closeLightbox() {
document.getElementById('lightbox').style.display = 'none';
}
function updateTransform() {
lightboxImg.style.transform = `translate(${currentTranslateX}px, ${currentTranslateY}px) scale(${currentScale})`;
}
// Zoom with mouse wheel
zoomContainer.addEventListener('wheel', (event) => {
event.preventDefault();
const rect = lightboxImg.getBoundingClientRect();
const offsetX = event.clientX - rect.left; // X position of mouse relative to the image
const offsetY = event.clientY - rect.top; // Y position of mouse relative to the image
const scaleChange = event.deltaY > 0 ? -0.1 : 0.1; // Zoom in or out
const newScale = Math.min(Math.max(1, currentScale + scaleChange), 5); // Limit zoom between 1x and 5x
// Prevent image from moving away during zoom out
if (newScale === 1) {
currentTranslateX = 0;
currentTranslateY = 0;
} else {
// Adjust the translation to keep the zoom centered at the mouse position
currentTranslateX -= offsetX * (newScale - currentScale) / currentScale;
currentTranslateY -= offsetY * (newScale - currentScale) / currentScale;
}
currentScale = newScale;
updateTransform();
});
// Start dragging
zoomContainer.addEventListener('mousedown', (event) => {
isDragging = true;
startX = event.clientX;
startY = event.clientY;
});
// Drag to pan
zoomContainer.addEventListener('mousemove', (event) => {
if (!isDragging) return;
const deltaX = event.clientX - startX;
const deltaY = event.clientY - startY;
currentTranslateX += deltaX;
currentTranslateY += deltaY;
startX = event.clientX;
startY = event.clientY;
updateTransform();
});
// Stop dragging when the mouse button is released
zoomContainer.addEventListener('mouseup', () => {
isDragging = false;
});
zoomContainer.addEventListener('mouseleave', () => {
isDragging = false;
});
// Stop dragging on mouse release outside the zoom container
document.addEventListener('mouseup', () => {
isDragging = false;
});
</script>
</body>
</html>