--- license: cc-by-nc-4.0 pretty_name: ColonoWorld REAL-Colon window index tags: - colonoscopy - endoscopy - video-generation - medical-imaging size_categories: - 1K___f` | | `video_id` | REAL-Colon video, e.g. `001-001` | | `group` | `base`, `polyp`, `instrument`, `irrigation`, `nbi` (training), `val` or `test` | | `segment` | anatomical segment from the REAL-Colon labels (`cecum` ... `rectum`, or `unlabeled`) | | `first_frame`, `last_frame` | first and last frame of the window, both inclusive | | `num_frames` | number of frames (65 or 189) = `last_frame - first_frame + 1` | | `native_fps` | recording frame rate of the video (25 or 29.97) | | `duration_s` | recorded duration, `num_frames / native_fps` | | `polyp_mask` | the window was trained with a polyp mask (360 windows: the 146 `polyp` windows and 214 `base` windows) | | `snare` | the instrument is a snare (33 `instrument` windows) | | `nbi` | the window contains NBI frames (154 windows: the 128 `nbi` windows and 26 `polyp` windows) | | `nbi_switch` | the window switches between white light and NBI (40 `nbi` and 13 `polyp` windows) | | `affine_00` ... `affine_12` | 2x3 affine from native pixels to the 1104x832 clip canvas | ### Frame numbering - Frame numbers are those of the REAL-Colon frame files: frame `n` of video `v` is `/_frames/_.jpg`, counted from 0. - A window uses every frame from `first_frame` to `last_frame`; no frame is skipped or repeated. - REAL-Colon videos are recorded at 25 or 29.97 fps (`native_fps`). ColonoWorld plays each window at 24 fps, one native frame per output frame. - Each frame is mapped onto the 1104x832 canvas with the window's affine (`[[affine_00, affine_01, affine_02], [affine_10, affine_11, affine_12]]`). ## Cutting the windows 1. Download REAL-Colon from [figshare](https://figshare.com/articles/media/REAL-colon_dataset/22202866) and extract the `