Commit a7b1e3e4 authored by Vincent POLLET's avatar Vincent POLLET
Browse files

Change from bob.io.base to bob.io.image load functions

parent d91265d7
...@@ -3,7 +3,6 @@ import cv2 as cv ...@@ -3,7 +3,6 @@ import cv2 as cv
import json import json
import bob.io.base
import bob.ip.color import bob.ip.color
......
...@@ -6,7 +6,7 @@ import cv2 as cv ...@@ -6,7 +6,7 @@ import cv2 as cv
import datetime import datetime
import bob.io.base import bob.io.image
import bob.ip.color import bob.ip.color
from .camera import Camera, CameraPair from .camera import Camera, CameraPair
...@@ -223,8 +223,8 @@ def main(): ...@@ -223,8 +223,8 @@ def main():
args = parse_arguments() args = parse_arguments()
im_left = bob.io.base.load(args.left_image) im_left = bob.io.image.load(args.left_image)
im_right = bob.io.base.load(args.right_image) im_right = bob.io.image.load(args.right_image)
im_out = stereo_match(im_left, img_right, CameraPair()) im_out = stereo_match(im_left, img_right, CameraPair())
...@@ -234,7 +234,7 @@ def main(): ...@@ -234,7 +234,7 @@ def main():
im_out[i,:,:] -= im_out[i,:,:].min() im_out[i,:,:] -= im_out[i,:,:].min()
im_out[i,:,:] *= (255.0/im_out[i,:,:].max()) im_out[i,:,:] *= (255.0/im_out[i,:,:].max())
bob.io.base.save(im_out.astype('uint8'), args.output_image) bob.io.image.save(im_out.astype('uint8'), args.output_image)
#============================================================================== #==============================================================================
......
...@@ -8,7 +8,7 @@ Test Units ...@@ -8,7 +8,7 @@ Test Units
from bob.ip.stereo.stereo import stereo_match, reproject_image, StereoParameters from bob.ip.stereo.stereo import stereo_match, reproject_image, StereoParameters
from bob.ip.stereo.camera import load_camera_config, CameraPair from bob.ip.stereo.camera import load_camera_config, CameraPair
from bob.io.base import load from bob.io.image import load
from pkg_resources import resource_filename from pkg_resources import resource_filename
......
...@@ -34,7 +34,7 @@ requirements: ...@@ -34,7 +34,7 @@ requirements:
- numpy {{ numpy }} - numpy {{ numpy }}
- pybind11 {{ pybind11 }} - pybind11 {{ pybind11 }}
- opencv {{ opencv }} - opencv {{ opencv }}
- bob.io.base - bob.io.image
- bob.ip.color - bob.ip.color
run: run:
- {{ pin_compatible('python') }} - {{ pin_compatible('python') }}
......
...@@ -3,5 +3,5 @@ bob.extension ...@@ -3,5 +3,5 @@ bob.extension
numpy numpy
pybind11 pybind11
opencv opencv
bob.io.base bob.io.image
bob.ip.color bob.ip.color
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment