Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
python3-escher-pattern
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Elphel
python3-escher-pattern
Commits
d150502a
Commit
d150502a
authored
Mar 28, 2019
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.md
parent
89b1a8df
Pipeline
#1065
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
1 deletion
+60
-1
README.md
README.md
+60
-1
No files found.
README.md
View file @
d150502a
# python3-escher-pattern
Escher or checker board pattern generator
\ No newline at end of file
Generates:
*
Escher pattern
*
Checker board pattern
Used for camera systems optical calibration.
Outputs is a PDF file. No borders. Ready for printing.
# Recommendations
*
Overall pattern rotation angle 0 is bad for correct MTF computation - because sensor pixel grid
# Requirements
*
matplotlib
# Usage
## Docker
```
docker build --tag ep .
docker run -d -p 3113:5000 ep
```
Then:
```
http://localhost:3113/?PAGE_WIDTH=1524&PAGE_HEIGHT=3048&LPM=2.705449885575893&ROTATE=14.036243467
```
Parameters:
*
**PAGE_WIDTH**
- page width in mm
*
**PAGE_HEIGHT**
- page width in mm
*
**LPM**
- cell pairs per meter
*
**ROTATE**
- pattern rotation angle
*
**ESCHER**
- cell border curvature - at 0 or inf becomes a normal checker board. Max curvature is at ~2.4. Optimal - 2.0
## Command line
escher.py:
```
from escher_pattern import Escher_Pattern
ep = Escher_Pattern(width= 1524, height= 3048, escher=2, lpm=2.705449885575893, rotate=14.036243467)
ep.generate()
ep.save()
```
checkerboard.py:
```
from escher_pattern import Escher_Pattern
ep = Escher_Pattern(width= 1524, height= 3048, escher=0, lpm=2.705449885575893, rotate=14.036243467)
ep.generate()
ep.save()
```
Parameters:
*
**width**
- page width in mm
*
**height**
- page width in mm
*
**lpm**
- cell pairs per meter
*
**rotate**
- pattern rotation angle
*
**escher**
- cell border curvature - at 0 or inf becomes a normal checker board. Max curvature is at ~2.4. Optimal - 2.0
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