Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lab-integrador
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
comina
lab-integrador
Commits
1250a5ab
Commit
1250a5ab
authored
5 years ago
by
Gonzalo Belcredi
Browse files
Options
Downloads
Patches
Plain Diff
First commit
parent
cfa7bd44
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bit2image.py
+1
-1
1 addition, 1 deletion
bit2image.py
image2bit.py
+23
-0
23 additions, 0 deletions
image2bit.py
with
24 additions
and
1 deletion
bit2image.py
+
1
−
1
View file @
1250a5ab
...
...
@@ -25,7 +25,7 @@ from PIL import Image
import
numpy
as
np
import
math
filename_bin
=
'
dat/recepcion
_2
.dat
'
filename_bin
=
'
dat/recepcion.dat
'
img_height
=
800
img_width
=
549
sync_start
=
[
0
,
128
,
255
]
*
10
...
...
This diff is collapsed.
Click to expand it.
image2bit.py
+
23
−
0
View file @
1250a5ab
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019
# Author: Gonzalo Belcredi, gbelcredi@fing.edu.uy
# Instituto de Ingenieria Electrica, Facultad de Ingenieria,
# Universidad de la Republica, Uruguay.
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this software; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street,
# Boston, MA 02110-1301, USA.
from
PIL
import
Image
import
numpy
as
np
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment