Skip to content

Commit

Permalink
MAINT: Add empty IO for corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
jwboth committed Jul 24, 2024
1 parent f07f75f commit c5d69b4
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/darsia/corrections/shape/rotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from __future__ import annotations

import itertools
from pathlib import Path
from typing import Union

import numpy as np
Expand Down Expand Up @@ -202,3 +203,11 @@ def correct_array(self, img: np.ndarray) -> np.ndarray:
] = q1_interpolation

return rotated_img

# ! ---- I/O ----

def save(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")

def load(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")
9 changes: 9 additions & 0 deletions src/darsia/corrections/shape/transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from abc import ABC, abstractmethod
from collections import namedtuple
from pathlib import Path
from typing import Union

import numpy as np
Expand Down Expand Up @@ -264,3 +265,11 @@ def correct_array(self, array_src: np.ndarray) -> np.ndarray:
)

return array_dst

# ! ---- I/O ----

def save(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")

def load(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")
8 changes: 8 additions & 0 deletions src/darsia/corrections/shape/translation.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,11 @@ def correct_array(self, img: np.ndarray) -> np.ndarray:
(h, w) = img.shape[:2]
translated_img = cv2.warpAffine(img, self.translation, (w, h))
return translated_img

# ! ---- I/O ----

def save(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")

def load(self, path: Path) -> None:
raise NotImplementedError("Not implemented yet.")

0 comments on commit c5d69b4

Please sign in to comment.