| 754 | |
| 755 | template<typename PointT> |
| 756 | inline |
| 757 | void PatchWork<PointT>::check_input_parameters_are_correct() { |
| 758 | string SET_SAME_SIZES_OF_PARAMETERS = "Some parameters are wrong! the size of parameters should be same"; |
| 759 | |
| 760 | int n_z = num_zones_; |
| 761 | int n_r = num_rings_each_zone_.size(); |
| 762 | int n_s = num_sectors_each_zone_.size(); |
| 763 | int n_m = min_ranges_.size(); |
| 764 | |
| 765 | if ((n_z != n_r) || (n_z != n_s) || (n_z != n_m)) { |
| 766 | throw invalid_argument(SET_SAME_SIZES_OF_PARAMETERS); |
| 767 | } |
| 768 | |
| 769 | if ((n_r != n_s) || (n_r != n_m) || (n_s != n_m)) { |
| 770 | throw invalid_argument(SET_SAME_SIZES_OF_PARAMETERS); |
| 771 | } |
| 772 | |
| 773 | if (min_range_ != min_ranges_[0]) { |
| 774 | throw invalid_argument("Setting min. ranges are weired! The first term should be eqaul to min_range_"); |
| 775 | } |
| 776 | |
| 777 | if (elevation_thr_.size() != flatness_thr_.size()) { |
| 778 | throw invalid_argument("Some parameters are wrong! Check the elevation/flatness_thresholds"); |
| 779 | } |
| 780 | |
| 781 | } |
| 782 | |
| 783 | |
| 784 | template<typename PointT> |