Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
GEPARD
GEPARD
Commits
0095fb1c
Commit
0095fb1c
authored
Nov 07, 2019
by
Josef Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hotfix for halving image resolution in WITec Interface
parent
8289ee92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ramancom/WITecCOM.py
ramancom/WITecCOM.py
+5
-0
No files found.
ramancom/WITecCOM.py
View file @
0095fb1c
...
...
@@ -21,6 +21,7 @@ If not, see <https://www.gnu.org/licenses/>.
import
os
import
sys
import
cv2
try
:
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
except
:
from
ramanbase
import
RamanBase
from
configRaman
import
RamanSettingParam
...
...
@@ -274,6 +276,9 @@ class WITecCOM(RamanBase):
self
.
ImageNameMan
.
SetValue
(
fname
)
self
.
ImageSaveMan
.
OperateTrigger
()
sleep
(.
1
)
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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment