Skip to content

Commit

Permalink
v0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahibis committed May 21, 2022
1 parent ccf757e commit f82b354
Show file tree
Hide file tree
Showing 24 changed files with 85 additions and 968 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,36 @@ the app for redaction images on web and windows.
### Old versions
* [0.1.0](https://github.com/ahibis/image-editor/tree/v0.1.0)
* [0.2.0](https://github.com/ahibis/image-editor/tree/v0.2.0)
* [0.2.3](https://github.com/ahibis/image-editor/tree/v0.2.0)
* [0.2.3](https://github.com/ahibis/image-editor/tree/v0.2.3)
## Layers
Menu for layer choose

![layers](/github/layers.png)
## Params
![params](/github/params.png)
## Gradient transformation (faster method)
applies gradient transformation by changing the graph of the function.
the Lagrange polynomial is used as a function for the spline.
* click to add a new point
* pull to drag a point
* double click to remove a point

![img](/github/GTF.png)
## Gradient transformation
applies gradient transformation by changing the graph of the function.
It works like "Gradient transformation (faster method)", but when the spline changes, a histogram is drawn.
You can change calculation mode from CPU to GPU.
![img](/github/gt.png)
## Binarization
turns the picture into black and white
### Gavrilov method
at the beginning, the algorithm searches for the color of the average pixel. Then for each pixel, if the color is larger than the average pixel, then it becomes white, otherwise it becomes black.

![gavrilov](/github/Gavrilov.png)
## Otsu method
https://en.wikipedia.org/wiki/Otsu%27s_method

![gavrilov](/github/otsu.png)
## Roadmap
- [x] params for editing and transform image
- [x] use GPU to render images
Expand Down
5 changes: 0 additions & 5 deletions docs/assets/index.752694f1.css

This file was deleted.

5 changes: 5 additions & 0 deletions docs/assets/index.7829705f.css

Large diffs are not rendered by default.

26 changes: 0 additions & 26 deletions docs/assets/index.a0a1d69d.js

This file was deleted.

26 changes: 26 additions & 0 deletions docs/assets/index.c5906c03.js

Large diffs are not rendered by default.

11 changes: 3 additions & 8 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<html lang="en" style="overflow-y: hidden;">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="lodash.js"></script>
<script src="gpu-browser.min.js"></script>
<script src="pixi.min.js"></script>
<script src="jquery.min.js"></script>
<script src="underscore-min.js"></script>
<script src="sylvester.js"></script>
<script src="spline-editor.js"></script>
<script src="newton.js"></script>
<script src="d3.js"></script>
<!-- <script src="pixi-extract.js"></script> -->
<title>Scoi</title>

<script type="module" crossorigin src="./assets/index.a0a1d69d.js"></script>
<script type="module" crossorigin src="./assets/index.c5906c03.js"></script>
<link rel="modulepreload" href="./assets/vendor.29c62639.js">
<link rel="stylesheet" href="./assets/vendor.879818f8.css">
<link rel="stylesheet" href="./assets/index.752694f1.css">
<link rel="stylesheet" href="./assets/index.7829705f.css">
</head>
<body scroll="no">
<div id="app"></div>
Expand Down
2 changes: 0 additions & 2 deletions docs/jquery-3.6.0.min.js

This file was deleted.

4 changes: 0 additions & 4 deletions docs/jquery.min.js

This file was deleted.

Loading

0 comments on commit f82b354

Please sign in to comment.