Commit 0095fb1c authored by Josef Brandt's avatar Josef Brandt

Hotfix for halving image resolution in WITec Interface

parent 8289ee92
......@@ -21,6 +21,7 @@ If not, see <>.
import os
import sys
import cv2
import pythoncom
import win32com.client
......@@ -31,6 +32,7 @@ from time import sleep, time
try: #when running the witectesting, the paths have to be differently, as it is in the same directory as the other raman com modules
from .ramanbase import RamanBase
from .configRaman import RamanSettingParam
from ..helperfunctions import cv2imread_fix, cv2imwrite_fix
from ramanbase import RamanBase
from configRaman import RamanSettingParam
......@@ -274,6 +276,9 @@ class WITecCOM(RamanBase):
img = cv2imread_fix(fname)
img = cv2.resize(img, None, fx=0.5, fy=0.5)
cv2imwrite_fix(fname, img)
def getImageDimensions(self, mode = 'df'):
""" Get the image width and height in um and the orientation angle in degrees.
Markdown is supported
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