Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
6181e9e4
Commit
6181e9e4
authored
Jan 27, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bitmap2component: fix Bug #1273082 (patch from Wesley Dungan)
parent
9bce7663
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
bitmap2cmp_gui.cpp
bitmap2component/bitmap2cmp_gui.cpp
+5
-5
No files found.
bitmap2component/bitmap2cmp_gui.cpp
View file @
6181e9e4
...
...
@@ -281,8 +281,8 @@ void BM2CMP_FRAME::Binarize( double aThreshold )
int
w
=
m_Greyscale_Image
.
GetWidth
();
unsigned
int
threshold
=
(
int
)(
aThreshold
*
256
);
for
(
int
y
=
1
;
y
<
h
;
y
++
)
for
(
int
x
=
1
;
x
<
w
;
x
++
)
for
(
int
y
=
0
;
y
<
h
;
y
++
)
for
(
int
x
=
0
;
x
<
w
;
x
++
)
{
pixin
=
m_Greyscale_Image
.
GetGreen
(
x
,
y
);
...
...
@@ -303,8 +303,8 @@ void BM2CMP_FRAME::NegateGreyscaleImage( )
int
h
=
m_Greyscale_Image
.
GetHeight
();
int
w
=
m_Greyscale_Image
.
GetWidth
();
for
(
int
y
=
1
;
y
<
h
;
y
++
)
for
(
int
x
=
1
;
x
<
w
;
x
++
)
for
(
int
y
=
0
;
y
<
h
;
y
++
)
for
(
int
x
=
0
;
x
<
w
;
x
++
)
{
pix
=
m_Greyscale_Image
.
GetGreen
(
x
,
y
);
pix
=
~
pix
;
...
...
@@ -512,7 +512,7 @@ void BM2CMP_FRAME::ExportFile( FILE* aOutfile, int aFormat )
}
/* fill the bitmap with data */
for
(
int
y
=
0
;
y
<
h
;
y
++
)
for
(
int
y
=
0
;
y
<
h
;
y
++
)
{
for
(
int
x
=
0
;
x
<
w
;
x
++
)
{
...
...
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