remove abrogate, add css

This commit is contained in:
kekee000
2015-04-03 00:54:11 +08:00
parent a47d14c0bc
commit e9afd57e96
13 changed files with 1445 additions and 769 deletions

View File

@@ -1,60 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>canvas拟合图像</title>
<script src="../dep/esl.js"></script>
<script src="../dep/jquery.min.js"></script>
<script src="../dep/clipper.js"></script>
<link rel="stylesheet" type="text/css" href="./css/editor.css">
<style>
body {
margin: 0;
padding: 0;
}
#canvas {
position: absolute;
max-width: 50%;
}
#render-view {
margin-left: 50%;
width: auto;
height: 90%;
}
</style>
</head>
<body>
<div>
<input id="upload-file" type="file">
灰度阈值:<input id="threshold-gray" type="range" min="0" max="255" value="200">
反转图像:<input id="threshold-reverse" type="checkbox">
二值算子:
<select id="threshold-fn">
<option value="">二值算子</option>
<option value="mean">基于灰度平均值的阈值</option>
<option value="minimum">基于谷底最小值的阈值</option>
<option value="intermodes">基于双峰平均值的阈值</option>
<option value="ostu">大津法</option>
<option value="isoData">ISODATA法</option>
</select>
</div>
<canvas id="canvas"></canvas>
<div id="render-view" class="render-view glyf-editor" oncontextMenu="return false"></div>
<script>
require.config({
baseUrl: '../src',
paths: {
demo: '../demo/js',
}
});
define('jquery', window.jQuery);
define('ClipperLib', window.ClipperLib);
</script>
<script>require(['demo/fitImage'])</script>
</body>
</html>