1、共同点:两者都是改变图像定义域的算子,不改变原图像size。
2、区别:
change_domain
设定一个全新的定义域,和原来定义域无关。
文档中:The operator change_domain uses the indicated region as the new definition domain.Unlike the operator reduce_domain it does not form the intersection of the previous definition domain, i.e., the size of the matrix is not changed
reduce_domain
缩放原来定义域至新的范围,新的定义域必须是原来定义域的子域。
文档中:The operator reduce_domain reduces the definition domain of the given image to the indicated region. The new definition domain is calculated as the intersection of the old definition domain with the region. Thus, the new definition domain can be a subset of the region. The size of the matrix is not changed.