Ejemplo n.º 1
0
    def __init__(self, param_in, param_out, param_show, logger=None, **kwargs):

        self._param_in = param_in
        self._param_out = param_out
        self._param_show = param_show

        self._io = gu.PathCreator(**self._param_in["image"])

        self._logger = logger
Ejemplo n.º 2
0
    def write(self,
              path,
              img,
              log_str=None,
              logger=None,
              log=".log",
              **kwargs):
        io = gu.PathCreator(**self.get_dict())

        imgio.write_image(io(path, **kwargs), img, logger=logger)

        if log_str is not None:
            imgio.write_log(io(path, ext=log, **kwargs),
                            log_str,
                            logger=logger)
Ejemplo n.º 3
0
    def __init__(self, param, logger=None):
        self._height = dict()
        self._num_points = None
        self._shape = list()

        io = gu.PathCreator(**gu.get_value(param, "temp", dict()))
        self._path = io(tempfile.mkstemp(prefix="shdw-", suffix=".ply")[1])

        self._param = param["process"]
        self.set_param_normal()

        self._logger = rsvis.utils.logger.Logger(logger=logger)
        self._opener = opener.Opener(param["opener"], logger=self._logger)

        self._stock = [0] * 3
Ejemplo n.º 4
0
    def __init__(self,
                 images,
                 labels,
                 *args,
                 label=list(),
                 color=list(),
                 **kwargs):
        super(RSIOImage, self).__init__(*args, **kwargs)

        self._images = images
        self._labels = labels
        self._label = label
        self._color = color

        self._img_name = "image"

        self._log_io = gu.PathCreator(
            **gu.get_value(self._param_in, "log", dict()))