Skip to content
Snippets Groups Projects
Commit f3012b4e authored by Christopher Randolph Rhodes's avatar Christopher Randolph Rhodes
Browse files

Fixed a few parameters in tests, confirmed all export products look the way they should

parent eaa5fef4
No related branches found
No related tags found
2 merge requests!18Completed (de)serialization of RoiSet,!16Completed (de)serialization of RoiSet
......@@ -33,7 +33,7 @@ class TestRoiSetMonoProducts(BaseTestRoiSetMonoProducts, unittest.TestCase):
params=RoiSetMetaParams(
mask_type=mask_type,
filters=kwargs.get('filters', {'area': {'min': 1e3, 'max': 1e4}}),
expand_box_by=(64, 2)
expand_box_by=(128, 2)
)
)
return roiset
......@@ -271,6 +271,22 @@ class TestRoiSetMultichannelProducts(BaseTestRoiSetMonoProducts, unittest.TestCa
output_path / 'multichannel' / 'rgb_2d_patches_bbox',
white_channel=4,
rgb_overlay_channels=(3, None, None),
draw_mask=False,
draw_bounding_box=True,
bounding_box_channel=1,
# mask_channel=0,
rgb_overlay_weights=(0.1, 1.0, 1.0),
expanded=True,
pad_to=256,
)
result = generate_file_accessor(files[0])
self.assertEqual(result.chroma, 3)
def test_multichannnel_to_rgb_2d_patches_mask(self):
files = self.roiset.export_patches(
output_path / 'multichannel' / 'rgb_2d_patches_mask',
white_channel=4,
rgb_overlay_channels=(3, None, None),
draw_mask=True,
mask_channel=0,
rgb_overlay_weights=(0.1, 1.0, 1.0),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment