Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
http://api.brain-map.org/api/v2/atlas_image_download/[AtlasImage.id]?downsample=[#]&quality=[#]&annotation=[true|false]&atlas=[#]

...

Examples

Download the downsampled AtlasImage 100883869 with annotations:

Code Block
http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true

Request P56 Mouse Brain Atlas' annotations:

Code Block

http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true&atlas=2

Request P56 Developing Mouse Brain Atlas' annotations:

Code Block

http://api.brain-map.org/api/v2/atlas_image_download/100883869?downsample=4&annotation=true&atlas=181276165

Parameters

filename

Integer

AtlasImage.id identifying the image to download.

annotation

Boolean (optional)

Set the value to true to retrieve the specified AtlasImage with annotations.

atlas

Integer (optional)

Specify the desired Atlas.ID for the annotations. The P56 Adult Mouse Brain Atlas and Developing Mouse Brain Atlas share a common AtlasDataSet, so the Atlas.ID should be specified. 

downsample

Integer (optional)

The number of times to downsample the original image. For example, 'downsample=1' halves the number of pixels of the original image both horizontally and vertically. Specifying 'downsample=2' quarters the height and width values.

quality

Integer (optional)

The jpeg quality of the returned image. This must be an integer from 0, for the lowest quality, up to as high as 100. If it is not specified, it defaults to the highest quality.

left

Integer (optional)

Index of the leftmost column of the region of interest, specified in full-resolution (largest tier) pixel coordinates. SectionImage.x is the default value.

top

Integer (optional)

Index of the topmost row of the region of interest, specified in full-resolution (largest tier) pixel coordinates. SectionImage.y is the default value.

width

Integer (optional)

Number of columns in the output image, specified in tier-resolution (desired tier) pixel coordinates. SectionImage.width is the default value. It is automatically adjusted when downsampled.

height

Integer (optional)

Number of rows in the output image, specified in tier-resolution (desired tier) pixel coordinates. SectionImage.height is the default value. It is automatically adjusted when downsampled.

...

Code Block
http://api.brain-map.org/api/v2/projection_image_download/[SectionImage.id]?downsample=[#]&quality=[#]&projection=[true|false]

Example

Download the downsampled SectionImage 126862583 with projection:

...