File: test_asrgb.py

package info (click to toggle)
python-imgviz 1.5.1%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,132 kB
  • sloc: python: 3,354; makefile: 15
file content (13 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
import numpy as np

import imgviz


def test_asrgb():
    data = imgviz.data.arc2017()
    gray = imgviz.rgb2gray(data["rgb"])

    rgb = imgviz.asrgb(gray)

    assert rgb.dtype == np.uint8
    assert rgb.ndim == 3