<jupyter_start><jupyter_text>Plot detected interest points over images<jupyter_code>image_file_name = 'image.tif'
ip_file_name = 'image.vwip'

ip_csv_file_name = bare.core.write_ip_to_csv(ip_file_name)
bare.plot.ip_plot(image_file_name, ip_csv_file_name)<jupyter_output><empty_output><jupyter_text>!['example_plot_IP'](example_plots/interest_points/v2_sub8_interest_points.png)  Plot match points found between two images<jupyter_code>image1_file_name = 'image1.tif'
image2_file_name = 'image2.tif'
match_file_name = 'image1__image2-clean.match'

match_csv_file_name = bare.core.write_mp_to_csv(match_file_name)
bare.plot.mp_plot(image1_file_name, image2_file_name, match_csv_file_name,out_dir_abs='qc_plots/match_points')<jupyter_output><empty_output><jupyter_text>!['example_plot_mp'](example_plots/match_points/v2_sub8__v3_sub8_match_points.png)  Plot dxdy after bundle adjustment<jupyter_code>ba_dir = 'bundle_adjust_output_directory/'

bare.plot.plot_dxdy(ba_dir)<jupyter_output><empty_output><jupyter_text>!['example_plot_dxdy'](example_plots/dxdy/v3_sub8__v4_sub8_dxdy_plot.png)  Plot tsai camera xyz positions bef|ore and after bundle adjustment<jupyter_code>ba_dir = 'bundle_adjust_output_directory/'
img_dir = 'input_image_directory/'
input_cam_dir = 'input_cameras_directory/'

bare.plot.plot_tsai_camera_positions_before_and_after(ba_dir, input_cam_dir)<jupyter_output><empty_output><jupyter_text>!['example_plot_xy'](example_plots/camera_positions/xy_camera_positions_before_and_after_bundle_adjust.png) !['example_plot_z'](example_plots/camera_positions/z_camera_positions_before_and_after_bundle_adjust.png)  Plot residuals after bundle adjustmentFigure on the right shows outliers is a result of outliers.<jupyter_code>ba_dir = 'bundle_adjust_output_directory/'

bare.plot.plot_residuals(ba_dir)<jupyter_output><empty_output><jupyter_text>!['example_plot_6'](example_plots/residuals/ba_match_residuals_before_and_after.jpg)  Plot WV3 footprint and scanner positions during aquisition.<jupyter_code>image_file_name = 'wv_image.tif'
camera_file = 'wv_image.xml'
reference_dem = 'reference_dem.tif'

bare.plot.plot_footprint(image_file_name,
                         camera_file,
                         reference_dem)<jupyter_output><empty_output><jupyter_text>!['example_plot_wv_foot_cam'](example_plots/camera_footprint/104001004F176F00.r100_footprint.png)  Plot WV3 footprint.<jupyter_code>image_file_name = 'wv_image.tif'
camera_file = 'wv_image.xml'
reference_dem = 'reference_dem.tif'

bare.plot.plot_footprint(image_file_name,
                         camera_file,
                         reference_dem,
                         cam_on=False)<jupyter_output><empty_output><jupyter_text>!['example_plot_wv_foot'](example_plots/camera_footprint/104001004F176F00.r100_footprint_cam_off.png)  Plot tsai camera footprint and position.<jupyter_code>image_file_name = 'image.tif'
camera_file = 'image.tsai'
reference_dem = 'reference_dem.tif'

bare.plot.plot_footprint(image_file_name,
                         camera_file,
                         reference_dem)<jupyter_output><empty_output><jupyter_text>!['example_plot_tsai_foot_cam'](example_plots/camera_footprint/v3_sub8_footprint.png)  Batch plot tsai camera footprints.<jupyter_code>img_dir = 'input_image_directory/'
cam_dir = 'input_tsai_camera_directory/'
reference_dem = 'reference_dem.tif'

bare.batch.plot_footprints(cam_dir, img_dir, reference_dem)<jupyter_output><empty_output><jupyter_text>!['example_plot_multiple_footprints'](example_plots/camera_footprint/footprints.png)  Run all<jupyter_code>ba_dir = 'bundle_adjust_output_directory/'
img_dir = 'input_image_directory/'
input_cam_dir = 'input_cameras_directory/'

bare.batch.plot_all_qc_products(ba_dir,
                                img_dir,
                                input_cam_dir,
                                img_extension='8.tif')<jupyter_output>plotting tsai camera positions before and after bundle adjustment...
plotting interest points over images...
plotting match points over images...
    processing clean.match files only.
plotting dxdy...
    processing clean.match files only.
plotting residuals before and after bundle adjustment...
{'fraction_non_alphanumeric': 0.09147212958551691, 'fraction_numerical': 0.013816102906145784, 'mean_word_length': 5.929042904290429, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '10', 'dir': 'jupyter-structured-clean-dedup', 'id': '12922', 'license': 'MIT', 'n_tokens_mistral': 1537, 'n_tokens_neox': 1436, 'n_words': 173, 'path': 'examples/notebook.ipynb', 'repo_name': 'dshean/bare', 'size': '4198'}