-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
adedd6a
commit 5d86faf
Showing
31 changed files
with
88 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
function mj2_from_tif_single_with_temps(mj2_output_file_path, tif_input_file_path, compression_ratio, do_verify) | ||
scratch_folder_path = get_scratch_folder_path() ; | ||
temporary_tif_input_file_path = [tempname(scratch_folder_path) '.tif'] ; | ||
temporary_mj2_output_file_path = [tempname(scratch_folder_path) '.mj2'] ; % risky, but VideoWriter is dumb and always adds this anyway | ||
copyfile(tif_input_file_path, temporary_tif_input_file_path); | ||
mj2_from_tif_single(temporary_mj2_output_file_path, temporary_tif_input_file_path, compression_ratio, do_verify); | ||
copyfile(temporary_mj2_output_file_path, mj2_output_file_path); | ||
delete(temporary_tif_input_file_path); | ||
delete(temporary_mj2_output_file_path); | ||
end |
Submodule mouselight_toolbox
updated
8 files
+2 −2 | find_and_batch.m | |
+14 −0 | get_file_size.m | |
+24 −0 | get_host_name.m | |
+12 −0 | get_scratch_folder_path.m | |
+19 −0 | get_user_name.m | |
+15 −0 | read_16bit_grayscale_mj2.m | |
+8 −0 | read_file_into_uint8_array.m | |
+12 −0 | write_16bit_grayscale_mj2.m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
function reset_for_test(output_folder_path) | ||
system(sprintf('rm -rf %s', output_folder_path)) ; | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
path_to_this_script = mfilename('fullpath') ; | ||
path_to_this_folder = fileparts(path_to_this_script) ; | ||
mj2_output_folder_path = fullfile(path_to_this_folder, 'mj2-from-tif-test-output-folder') ; | ||
tif_input_folder_path = fullfile(path_to_this_folder, 'mj2-from-tif-test-input-folder') ; | ||
mj2_output_folder_path = fullfile(path_to_this_folder, 'freezing-test-output-folder') ; | ||
tif_input_folder_path = fullfile(path_to_this_folder, 'freezing-test-input-folder') ; | ||
compression_ratio = 10 ; | ||
do_verify = true ; | ||
do_run_on_cluster = false ; | ||
do_verify = false ; | ||
do_run_on_cluster = true ; | ||
|
||
reset_for_test(mj2_output_folder_path) ; | ||
mj2_from_tif(mj2_output_folder_path, tif_input_folder_path, compression_ratio, do_verify, do_run_on_cluster) | ||
is_all_well = verify_frozen_files(mj2_output_folder_path, tif_input_folder_path, do_run_on_cluster) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
function is_all_well = verify_big_files_after_mj2_from_tif(tif_root_folder_path) | ||
function is_all_well = verify_big_files_after_mj2_from_tif(tif_root_folder_path, mj2_root_folder_path) | ||
% Makes sure there's a .similar-mj2-exists for each .tif file in | ||
% tif_root_folder_path. | ||
is_all_well = find_and_verify(tif_root_folder_path, '^\d\d\d\d\d-ngc.\d.tif$', @verify_single_big_file_after_mj2_from_tif) ; | ||
is_all_well = find_and_verify(tif_root_folder_path, @does_match_raw_tile_tif_name, @verify_single_big_file_after_mj2_from_tif, tif_root_folder_path, mj2_root_folder_path) ; | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.