Skip to content

Commit 6f1cfe2

Browse files
authored
Merge pull request #306 from SCIInstitute/thresh_max
changed max threshold value to default to machine min
2 parents de36727 + 0efdb54 commit 6f1cfe2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/Application/Tools/ThresholdTool.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,8 @@ void ThresholdTool::handle_seed_points_changed()
350350
Core::DataVolumeHandle data_volume = data_layer->get_data_volume();
351351
Core::DataBlockHandle data_block = data_volume->get_data_block();
352352
double min_val = std::numeric_limits< double >::max();
353-
double max_val = std::numeric_limits< double >::min();
353+
double max_val = (-1.0)*std::numeric_limits< double >::max();
354+
354355
for ( size_t i = 0; i < seed_points.size(); ++i )
355356
{
356357
Core::Point pt = data_volume->apply_inverse_grid_transform( seed_points[ i ] );

0 commit comments

Comments
 (0)