Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
2e33844f
Unverified
Commit
2e33844f
authored
Dec 26, 2017
by
Alexander Alekhin
Committed by
GitHub
Dec 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #10419 from shortcipher3:master
parents
1e4395a8
50e8f910
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
js_fourier_transform_dft.html
doc/js_tutorials/js_assets/js_fourier_transform_dft.html
+1
-1
js_histogram_begins_calcHist.html
doc/js_tutorials/js_assets/js_histogram_begins_calcHist.html
+3
-3
No files found.
doc/js_tutorials/js_assets/js_fourier_transform_dft.html
View file @
2e33844f
...
...
@@ -56,7 +56,7 @@ let plane0 = new cv.Mat();
padded
.
convertTo
(
plane0
,
cv
.
CV_32F
);
let
planes
=
new
cv
.
MatVector
();
let
complexI
=
new
cv
.
Mat
();
let
plane1
=
new
cv
.
Mat
.
zeros
(
padded
.
cols
,
padded
.
row
s
,
cv
.
CV_32F
);
let
plane1
=
new
cv
.
Mat
.
zeros
(
padded
.
rows
,
padded
.
col
s
,
cv
.
CV_32F
);
planes
.
push_back
(
plane0
);
planes
.
push_back
(
plane1
);
cv
.
merge
(
planes
,
complexI
);
...
...
doc/js_tutorials/js_assets/js_histogram_begins_calcHist.html
View file @
2e33844f
...
...
@@ -61,9 +61,9 @@ let dst = new cv.Mat.zeros(src.rows, histSize[0] * scale,
// draw histogram
for
(
let
i
=
0
;
i
<
histSize
[
0
];
i
++
)
{
let
binVal
=
hist
.
data32F
[
i
]
*
src
.
rows
/
max
;
let
p
i
oint1
=
new
cv
.
Point
(
i
*
scale
,
src
.
rows
-
1
);
let
p
i
oint2
=
new
cv
.
Point
((
i
+
1
)
*
scale
-
1
,
src
.
rows
-
binVal
);
cv
.
rectangle
(
dst
,
p
ioint1
,
pi
oint2
,
color
,
cv
.
FILLED
);
let
point1
=
new
cv
.
Point
(
i
*
scale
,
src
.
rows
-
1
);
let
point2
=
new
cv
.
Point
((
i
+
1
)
*
scale
-
1
,
src
.
rows
-
binVal
);
cv
.
rectangle
(
dst
,
p
oint1
,
p
oint2
,
color
,
cv
.
FILLED
);
}
cv
.
imshow
(
'canvasOutput'
,
dst
);
src
.
delete
();
dst
.
delete
();
srcVec
.
delete
();
mask
.
delete
();
hist
.
delete
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment