{"name":"Partial-Aligner","display_name":"Partial-Aligner","visibility":"public","icon":"","categories":[],"schema_version":"0.2.0","on_activate":null,"on_deactivate":null,"contributions":{"commands":[{"id":"Partial-Aligner.Aligner","title":"Aligner","python_name":"Partial_Aligner.Aligner_script:Aligner","short_title":null,"category":null,"icon":null,"enablement":null}],"readers":null,"writers":null,"widgets":[{"command":"Partial-Aligner.Aligner","display_name":"Aligner","autogenerate":false}],"sample_data":null,"themes":null,"menus":{},"submenus":null,"keybindings":null,"configuration":[]},"package_metadata":{"metadata_version":"2.1","name":"Partial-Aligner","version":"0.0.1","dynamic":null,"platform":["UNKNOWN"],"supported_platform":null,"summary":"A napari plugin for manual registration of (a part of) an image","description":"# Partial-Aligner\n\n[![License](https://img.shields.io/pypi/l/napari-medical-image-formats.svg?color=green)](https://github.com/MBPhys/Partial-Aligner/raw/master/LICENSE)\n[![PyPI](https://img.shields.io/pypi/v/Partial-Aligner.svg?color=green)](https://pypi.org/project/Partial-Aligner)\n[![Python Version](https://img.shields.io/pypi/pyversions/Partial-Aligner.svg?color=green)](https://python.org)\n\n\nA napari plugin to affine transform images and parts of images in 2D and 3D. It was developed in the context of brain slice registration and solves multiple, related problems when working with histology slices.\n\n----------------------------------\n\n## Installation\n\nYou can install `Partial-Aligner` via [pip]:\n\n pip install Partial-Aligner\n \nTo make full use of this plugin, please also install the sister plugins:\n\n pip install Label-Creator\n pip install Layer-Data-Replace\n pip install World2Data\n\n## Usage\n\nIt is important to note that this plugin is part of a group of plugins ([Label-Creator](https://github.com/DKFZ-TMTRR/Label-Creator, \"Creates Labels\"), [Layer-Data-Replace](https://github.com/DKFZ-TMTRR/Layer-Data-Replace, \"Replaces the data of a layer with other data\"), [World2Data](https://github.com/DKFZ-TMTRR/World2Data, \"Applies a transformation to an image\")) which are intended to be used together. \n\nThe principle workflow with this plugin is as follows:\n\n1. Load an image of interest (ioi) using standard napari.\n2. Find out meaningful transformation parameters for the ioi (or part of it) based on what you see in the viewer.\n3. (optional) Save the affine transformation matrix (can later be applied to other modalities)\n4. Apply the transformation to create a new, altered version of the ioi (use plugin [World2Data](https://github.com/DKFZ-TMTRR/World2Data, \"Applies a transformation to an image\"))\n\nDecisions on the parameters (step 2) are made based on the problem at hand:\n\n- Registration: You have a second (fixed) image and you want to align your ioi to that image? Transform your whole ioi! Just play with the transformation parameters until you are happy with the alignment of ioi and fixed image.\n\n
\n
\n DAPI staining (red) before (left) and after (right) manual registration on an MRI image (green). \n
\n
\n Original slice with misplaced region (left), marked using the label function (middle) and after manual adjustment (right), where the misplaced region (green) was cut and newly positioned. \n