Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated readme #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,24 @@ The following is a simple pure python implementation of forward addative registr

# Simple example :

import LKForwardAddativeImageReg as LKReg
```python
from LKReg import LKForwardAddativeImageReg as LKReg
import cv2

#load images
```
##### Load images
```python
fixed = cv2.cvtColor(cv2.imread('fixed.png'), cv2.COLOR_BGR2GRAY)
moving = cv2.cvtColor(cv2.imread('moving.png'), cv2.COLOR_BGR2GRAY)

#perform registration
```
##### Perform registration
```python
tforms, deltas = LKReg.iterativeReg(fixed, moving, niter = 150, npyramids = 2)

#show before and after
```
##### Show before and after
```python
LKReg.imshowpair(fixed,moving,tforms[0], figureTitle = 'before')
LKReg.imshowpair(fixed,moving,tforms[-1], figureTitle = 'after')
```

# In depth :
This module allows for fast, subpixel accurate, robust registration. It essentially performs stochatic gradient decent using a first order taylor polynomial aproximation of the gradient. This is very similar to whats found in cv2 / matlab imregister. The ECC ( enhanced correlation coefficient ) algorithm is also implemented which adds robustness and reduces the numbers of needed itterations. This registration can use pyramiding ( or not - npyramids = 1 ) to deal with relatively large transformations. The registration is homography only ( no affine, translation, similarity ...etc options ( yet )).
Expand Down