Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • B bob.io.stream
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bob
  • bob.io.stream
  • Issues
  • #3
Closed
Open
Created Jul 14, 2020 by Vincent POLLET@vpolletMaintainer

warp transform changes dtype

Using the warp transform changes the dtype of the data to float64

In particular, it happens during the warp stream process_frame function

This happens even though preserve_range=True is passed to sk-image.transform.warp, which should preserve it according to the doc.

@dgeissbuhler Do you have an idea why this is happening ?

Minimal example (unit_test branch):

import bob.io.stream
import numpy as np
from pkg_resources import resource_filename

f = bob.io.stream.StreamFile(
    "test/data/input_example.h5",
    "config/idiap_face_streams.json",
    resource_filename("bob.ip.stereo", "config/idiap_face_calibration.json"),
)

color = f.stream("color")
warp_color = color.warp(color)

print(color[0].dtype)
print(warp_color[0].dtype)

Output: uint8 float64

Thanks

Assignee
Assign to
Time tracking