Skip to content

Commit

Permalink
Docs #2 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancon committed Jun 7, 2021
1 parent dda0e2f commit d7ec8b0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/docs/mockup.docx

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ button in the top-right.
a new layer with the proper transform applied.

* napari will need to be installed separately for this to work: `pip install napari`

9. For more detailed instructions and more information, open the documentation from inside the
app.

Numbered steps above correspond to the locations indicated in the screenshot below:

Expand Down
26 changes: 9 additions & 17 deletions docs/led_montage_for_napari.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,15 @@

with napari.gui_qt():
viewer = napari.Viewer()
reference = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/images/led_photograph_1.jpg'), name='led_photograph_1.jpg')
reference = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/example/led_photograph_1.jpg'), name='led_photograph_1.jpg')
reference.scale = (1.0, 1.0)
reference.rotate = 0.0
reference.translate = (0.0, 0.0)
moving1 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/images/led_xray_1.jpg'), name='led_xray_1.jpg')
moving1.scale = (0.6750556940957996, 0.6750556940957996)
moving1.rotate = 0.28827821902320655
moving1.translate = (286.84713856699454, 312.03881723676216)
moving2 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/images/led_micrograph_1.jpg'), name='led_micrograph_1.jpg')
moving2.scale = (0.06702167479992088, 0.06702167479992088)
moving2.rotate = -0.8050467017347441
moving2.translate = (353.7324550308661, 927.9582324946447)
moving3 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/images/led_xray_2.jpg'), name='led_xray_2.jpg')
moving3.scale = (0.15568338107189866, 0.15568338107189866)
moving3.rotate = 0.3951051917960021
moving3.translate = (327.1747386431872, 935.133078025883)
moving4 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/images/led_xray_3.jpg'), name='led_xray_3.jpg')
moving4.scale = (0.07562171904384082, 0.07562171904384082)
moving4.rotate = 0.33719975120085394
moving4.translate = (340.1858354002664, 948.8138217715763)
moving1 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/example/led_micrograph_1.jpg'), name='led_micrograph_1.jpg')
moving1.scale = (0.06620473023384621, 0.06620473023384621)
moving1.rotate = -2.667902396758369
moving1.translate = (353.113107047931, 930.8959890457373)
moving2 = viewer.add_image(imread('C:/Users/lancon/Documents/GitHub/CIM/docs/example/led_xray_2.jpg'), name='led_xray_2.jpg')
moving2.scale = (0.15874186598992301, 0.15874186598992301)
moving2.rotate = 0.2940480079357866
moving2.translate = (325.73990289545736, 933.5170923835777)
Binary file modified docs/screenshots/main_window.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/~$mockup.docx
Binary file not shown.

0 comments on commit d7ec8b0

Please sign in to comment.