---
# System prepended metadata

title: JSON Pardini
tags: [' Dicom', ' JSON', enacom, ' Pardini', ' Brain']

---

---
title: JSON Pardini
tags: enacom, Dicom, JSON, Brain, Pardini
description: Alinhamentos para JSON format
---
# Alignment for JSON

# Actual state (what we have)

```typescript
{
    "base_input_dir": "path/to/base/dir", # Will point to all series
    "series_dir": "VOLUME_PM",
    "output_dir": "path/to/output/dir", # Will point to our masks
    "patient": {
      "sex": "M",
      "age": "063Y"
               },
    "series": {
      "VOLUME_PM": {
        "0": {
          "assymetry": {
            "mse": 0,
            "ssim": 0,
            "dirsub": 0,
            "abssub": 0,
            "chi": 0
          },
          "labeler": [{
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_0_0.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              },
               {
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_0_1.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              }],
          "unet": {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": true
          },
          "raw": [{
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "a",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_0_0.png",
            "area": 0
          },
          {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_0_1.png",
            "area": 0
          }]
        },
        "1": {
          "assymetry": {
            "mse": 0,
            "ssim": 0,
            "dirsub": 0,
            "abssub": 0,
            "chi": 0
          },
          "labeler": [{
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_1_0.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              },
               {
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_1_1.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              }],
          "unet": {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": true
          },
          "raw": [{
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "a",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_1_0.png",
            "area": 0
          },
          {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_1_1.png",
            "area": 0
          }]
        }},

      "series1": {
        "0": {
          "assymetry": {
            "mse": 0,
            "ssim": 0,
            "dirsub": 0,
            "abssub": 0,
            "chi": 0
          },
          "labeler": [{
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_0_0.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              },
               {
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_0_111.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              }],
          "unet": {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": true
          },
          "raw": [{
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "a",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_0_0.png",
            "area": 0
          },
          {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_0_1.png",
            "area": 0
          }]
        },
        "1": {
          "assymetry": {
            "mse": 0,
            "ssim": 0,
            "dirsub": 0,
            "abssub": 0,
            "chi": 0
          },
          "labeler": [{
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_1_0.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              },
               {
                "segmentation": [[[0, 0], [0, 0]]],
                "mask_filename": "mask_1_1.png",
                "class": true,
                "subclass": "",
                "bbox": [0, 0, 0, 0],
                "area": 0,
                "iscrowd": true
              }],
          "unet": {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": true
          },
          "raw": [{
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "a",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_1_0.png",
            "area": 0
          },
          {
            "segmentation": [[[0, 0], [0, 0]]],
            "class": "",
            "subclass" : "",
            "iscrowd": true,
            "image_id": "",
            "bbox": [0, 0, 0, 0],
            "image_filename" : "0.jpeg",
            "mask_filename": "mask_1_1.png",
            "area": 0
          }]
        }
      }
    }
  }
  }

```
# Initialization Robert

Will generate the whole JSON format as below

```typescript

```

# Write keys
## Mateus (segmentator + labeler)

Mateus is in charge to fill this values (as well as append then to JSON[1] whenever there is a new slice)
```typescript

```

## Gabriel (symmetry)

Gabriel's symmetry will be in charge to fill this values (as well as append then to JSON[1] whenever the slice studied is not in JSON yet)

```typescript

```

## Gustavo Maia (UNET)

```typescript
```