extensions/xnat/src/utils/IO/classes/AIMReader.js
/**
   * _extractPolygons - Extracts each polygon from a particular annotation.
   *
   * @param  {HTMLElement} annotation An AIM ImageAnnotation.
   * @returns {null}
   */
Extracts each polygon from a particular annotation.
Extracts each polygon from a particular annotation .
_extractPolygons(annotation) {
    const children = annotation.children;
    const ROIContourUid = this._createNewVolumeAndGetUid(children);
    const markupEntitys = annotation.getElementsByTagName('MarkupEntity');
    for (let i = 0; i < markupEntitys.length; i++) {
      this._addMarkupEntityIfPolygon(markupEntitys[i], ROIContourUid);
    }
  }
_extractPolygons ( annotation ) { const children = annotation . children ; const ROIContourUid = this . _createNewVolumeAndGetUid ( children ) ; const markupEntitys = annotation . getElementsByTagName ( 'MarkupEntity' ) ; for ( let i = 0 ; i < markupEntitys . length ; i ++ ) { this . _addMarkupEntityIfPolygon ( markupEntitys [ i ] , ROIContourUid ) ; } }
_extractPolygons - Extracts each polygon from a particular annotation.
_extractPolygons - Extracts each polygon from a particular annotation .