Only support 3 Channel Image
(self, input, order="RGB", type_mode="uint8")
| 145 | MODE = ["numpy"] |
| 146 | |
| 147 | def __init__(self, input, order="RGB", type_mode="uint8"): |
| 148 | """Only support 3 Channel Image""" |
| 149 | if isinstance(input, str): |
| 150 | self.data = self.read_image(input, type_mode, order) |
| 151 | else: |
| 152 | self.data = self.get_image(input, type_mode, order) |
| 153 | |
| 154 | self.order = order |
| 155 | self.type_mode = type_mode |
| 156 | |
| 157 | def get_image(self, input, type_mode, order): |
| 158 | if isinstance(input, Image): |
nothing calls this directly
no test coverage detected