Skip to content

Commit

Permalink
Fixed example_create_measurement_file_from_image by adding DistanceOp…
Browse files Browse the repository at this point in the history
…ticScreen usage
  • Loading branch information
braden6521 committed Apr 4, 2024
1 parent 0d2b34c commit 772da4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/sofast_fixed/example_measurement_from_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import cv2 as cv

import opencsp.app.sofast.lib.image_processing as ip
from opencsp.app.sofast.lib.DistanceOpticScreen import DistanceOpticScreen
from opencsp.app.sofast.lib.MeasurementSofastFixed import MeasurementSofastFixed
from opencsp.common.lib.geometry.Vxyz import Vxyz
from opencsp.common.lib.opencsp_path.opencsp_root_path import opencsp_code_dir
Expand Down Expand Up @@ -67,7 +68,8 @@ def example_create_measurement_file_from_image():

# 4. Create measurement object
# ============================
measurement = MeasurementSofastFixed(image, v_measure_point_facet, dist_optic_screen, origin, name=name)
dist_optic_screen_measure = DistanceOpticScreen(v_measure_point_facet, dist_optic_screen)
measurement = MeasurementSofastFixed(image, dist_optic_screen_measure, origin, name=name)

# 5. Save measurement as HDF5 file
# ================================
Expand Down

0 comments on commit 772da4d

Please sign in to comment.