Load spot positions from a JSON file and after manually adjusting the positions save the result to a new JSON file
First select a spot position file (JSON). An example JSON file could for instance look like this:
{
"spots": [
{
"grid_x": 0,
"grid_y": 0,
"pixel_x": 1756,
"pixel_y": 1536,
"radius": 702.6
},
{
"grid_x": 0,
"grid_y": 1,
"pixel_x": 1756,
"pixel_y": 4609,
"radius": 702.6
},
{
"grid_x": 0,
"grid_y": 2,
"pixel_x": 1756,
"pixel_y": 7682,
"radius": 702.6
},
{
"grid_x": 1,
"grid_y": 0,
"pixel_x": 5269,
"pixel_y": 1536,
"radius": 702.6
},
{
"grid_x": 1,
"grid_y": 1,
"pixel_x": 5269,
"pixel_y": 4609,
"radius": 702.6
},
{
"grid_x": 1,
"grid_y": 2,
"pixel_x": 5269,
"pixel_y": 7682,
"radius": 702.6
}
]
}
Then provide a URL to a DZI file (for instance http://openseadragon.github.io/example-images/highsmith/highsmith.dzi )
In the OpenSeadragon window showing the photo, you can now press down the CTRL key and mark a region with the mouse (left mouse button).
The selected spots (the green spots) can be dragged by the mouse. After adjusting the spot positions click "save JSON"
to save the result into a file.