+
diff --git a/src/modulePage/ModuleSection.tsx b/src/modulePage/ModuleSection.tsx
index 2cec87b..c1d7ee9 100644
--- a/src/modulePage/ModuleSection.tsx
+++ b/src/modulePage/ModuleSection.tsx
@@ -1,28 +1,35 @@
-import React from 'react';
-import SobelFilterDemo from '../modules/computerVision/sobelFilter/SobelFilterDemo';
-import GaussianBlurDemo from '../modules/computerVision/gaussianBlur/GaussianBlurDemo';
-import GaborDemo from '../modules/computerVision/gaborFilter/gaborFilter';
-import DiffOfGaussianDemo from '../modules/computerVision/diffofgaussian/DiffOfGaussian';
-import HaarWaveletDemo from '../modules/computerVision/haarWavelet/HaarWaveletDemo';
-import { ImageSelectableDemo } from '../modules/computerVision/imageSelector/ImageSelectableDemo';
+/* eslint-disable */
+import React from "react";
+import SobelFilterDemo from "../modules/computerVision/sobelFilter/SobelFilterDemo";
+import GaussianBlurDemo from "../modules/computerVision/gaussianBlur/GaussianBlurDemo";
+import GaborDemo from "../modules/computerVision/gaborFilter/gaborFilter";
+import DiffOfGaussianDemo from "../modules/computerVision/diffofgaussian/DiffOfGaussian";
+import HaarWaveletDemo from "../modules/computerVision/haarWavelet/HaarWaveletDemo";
+import { ImageSelectableDemo } from "../modules/computerVision/imageSelector/ImageSelectableDemo";
import PCADemo, {
RawDataTable,
SelectableAxisChart,
StaticAxisChart,
config as pcaConfig,
-} from '../modules/stateSpaces/pca/PCA';
+} from "../modules/stateSpaces/pca/PCA";
import KMeans, {
KMeansStepExample,
InteractiveClusteringExample,
-} from '../modules/stateSpaces/kmeans';
-import blank from '../media/modules/blank.png';
-import animation1 from '../media/modules/computerVision/animation-1.gif';
-import animation2 from '../media/modules/computerVision/animation-2.gif';
-import animation3 from '../media/modules/computerVision/animation-3.gif';
+} from "../modules/stateSpaces/kmeans";
+import blank from "../media/modules/blank.png";
+import animation1 from "../media/modules/computerVision/animation-1.gif";
+import animation2 from "../media/modules/computerVision/animation-2.gif";
+import animation3 from "../media/modules/computerVision/animation-3.gif";
+import combinedSobelKernelExampleLight from "../media/modules/computerVision/combinedSobelKernelExampleLight.png";
+import combinedSobelKernelExampleDark from "../media/modules/computerVision/combinedSobelKernelExampleDark.png";
+import vertSobelExampleLight from "../media/modules/computerVision/sobelKernels/vertical_lighttodark.png";
+import vertSobelExampleDark from "../media/modules/computerVision/sobelKernels/vertical_darktolight.png";
+// import lightVertSobelExampleLight from '../media/modules/computerVision/vertSobelExampleLight.png';
+// import lightVertSobelExampleDark from '../media/modules/computerVision/vertSobelExampleDark.png';
const lorem =
- 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
+ "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
interface ColorScheme {
bgColor: string;
@@ -40,14 +47,22 @@ interface ModuleSubsection {
function GetImage(imgName: string) {
switch (imgName) {
- case 'blank':
+ case "blank":
return blank;
- case 'animation1':
+ case "animation1":
return animation1;
- case 'animation2':
+ case "animation2":
return animation2;
- case 'animation3':
+ case "animation3":
return animation3;
+ case "sobelKernelLight":
+ return vertSobelExampleLight;
+ case "sobelKernelDark":
+ return vertSobelExampleDark;
+ case "combinedSobelKernelLight":
+ return combinedSobelKernelExampleLight;
+ case "combinedSobelKernelDark":
+ return combinedSobelKernelExampleDark;
default:
}
}
@@ -56,7 +71,7 @@ function getDemo(comp: string, scheme: ColorScheme) {
const demoArgs = { labelColor: scheme.titleColor };
switch (comp) {
- case 'GaussianBlurDemo':
+ case "GaussianBlurDemo":
return (
);
- case 'GaborDemo':
+ case "GaborDemo":
return (
);
- case 'DiffOfGaussian':
+ case "DiffOfGaussian":
return (
);
- case 'HaarWaveletDemo':
+ case "HaarWaveletDemo":
return (
);
- case 'SobelFilterDemo':
+ case "SobelFilterDemo":
return (
);
- case 'PCADemo':
+ case "PCADemo":
return
;
- case 'RawDataTable':
+ case "RawDataTable":
return
;
- case 'StaticAxisChart':
+ case "StaticAxisChart":
return (
);
- case 'SelectableAxisChart':
+ case "SelectableAxisChart":
return (
);
- case 'PCASelectableAxisChart':
+ case "PCASelectableAxisChart":
return (
);
- case 'InteractiveKMeans':
+ case "InteractiveKMeans":
return (
);
- case 'StepKMeans':
+ case "StepKMeans":
return (
);
- case 'KMeans':
+ case "KMeans":
return
;
default:
return
;
@@ -171,20 +186,20 @@ const ModuleSection: React.FC
= ({
demoComp,
}) => {
const scheme =
- colorScheme === 'dark'
+ colorScheme === "dark"
? {
- bgColor: 'bg-moduleDarkBlue',
- titleColor: 'text-modulePaleBlue',
- headingColor: 'text-moduleTeal',
- bodyColor: 'text-moduleOffwhite',
- labelColorHex: '#CBD9F2',
+ bgColor: "bg-moduleDarkBlue",
+ titleColor: "text-modulePaleBlue",
+ headingColor: "text-moduleTeal",
+ bodyColor: "text-moduleOffwhite",
+ labelColorHex: "#CBD9F2",
}
: {
- bgColor: 'bg-modulePaleBlue',
- titleColor: 'text-moduleNavy',
- headingColor: 'text-moduleDarkBlue',
- bodyColor: 'text-moduleNavy',
- labelColorHex: '#394D73',
+ bgColor: "bg-modulePaleBlue",
+ titleColor: "text-moduleNavy",
+ headingColor: "text-moduleDarkBlue",
+ bodyColor: "text-moduleNavy",
+ labelColorHex: "#394D73",
};
return (
@@ -200,34 +215,42 @@ const ModuleSection: React.FC = ({
{sections.map((section, index) => (
-
- {section.body || lorem}
-
+ {section.body?.includes("
") ? (
+
+
+ ) : (
+
+ {section.body || lorem}
+
+ )}
diff --git a/src/modules/computerVision/common/InteractiveFilter.tsx b/src/modules/computerVision/common/InteractiveFilter.tsx
index 7ea0710..a8ec30c 100644
--- a/src/modules/computerVision/common/InteractiveFilter.tsx
+++ b/src/modules/computerVision/common/InteractiveFilter.tsx
@@ -65,13 +65,13 @@ const InteractiveFilter: React.FC = ({