Skip to content

Commit

Permalink
listening
Browse files Browse the repository at this point in the history
  • Loading branch information
mandeep-mahra committed Jul 12, 2023
1 parent 6ad24f5 commit 66ea4fa
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 1 deletion.
Binary file modified Backend/input/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Backend/output/chromaSS.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Backend/output/kMeans.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion Backend/src/imageInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ app.get('/', (req, res) => {
});

app.listen(5000, ()=>{
console.log("listning to port 5000");
console.log("listening to port 5000");
});

1 change: 1 addition & 0 deletions Backend/src/kMeans.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ async function kMeans(K, numChannel){
var bMatrix = arrayToMatrix(blue, width, height);

var matrices = [rMatrix, gMatrix, bMatrix];

for(var i =0; i<numChannel ; i++)
changeToClosest(matrices[i], K);

Expand Down

0 comments on commit 66ea4fa

Please sign in to comment.