Exemplo n.º 1
0
 /*Emphasize
 MaskWidth (input_control)  extent.x → (integer)
 Width of low pass MaskBase.
     Default value: 7
     Suggested values: 3, 5, 7, 9, 11, 15, 21, 25, 31, 39
     Typical range of values: 3 ≤ MaskWidth ≤ 201
     Minimum increment: 2
     Recommended increment: 2
 MaskHeight (input_control)  extent.y → (integer)
 Height of the low pass MaskBase.
     Default value: 7
     Suggested values: 3, 5, 7, 9, 11, 15, 21, 25, 31, 39
     Typical range of values: 3 ≤ MaskHeight ≤ 201
     Minimum increment: 2
     Recommended increment: 2
 Factor (input_control)  real → (real)
 Intensity of contrast emphasis.
     Default value: 1.0
     Suggested values: 0.3, 0.5, 0.7, 1.0, 1.4, 1.8, 2.0
     Typical range of values: 0.0 ≤ Factor ≤ 20.0 (sqrt)
     Minimum increment: 0.01
     Recommended increment: 0.2
     Restriction: (0 < Factor) && (Factor < 20)
 */
 public  void Emphasize(ImageBase src_Image, ImageBase dst_Image,MaskBase maskEmphasize, HTuple factor)
 {
     HObject dst;
     HOperatorSet.Emphasize(src_Image.GetImage, out dst, maskEmphasize.W, maskEmphasize.H, factor);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
Exemplo n.º 2
0
 /*Illuminate
 MaskWidth (input_control)  extent.x → (integer)
 Width of low pass MaskBase.
     Default value: 101
     Suggested values: 31, 41, 51, 71, 101, 121, 151, 201
     Typical range of values: 3 ≤ MaskWidth ≤ 299
     Minimum increment: 2
     Recommended increment: 10
 MaskHeight (input_control)  extent.y → (integer)
 Height of low pass MaskBase.
     Default value: 101
     Suggested values: 31, 41, 51, 71, 101, 121, 151, 201
     Typical range of values: 3 ≤ MaskHeight ≤ 299
     Minimum increment: 2
     Recommended increment: 10
 Factor (input_control)  real → (real)
 Scales the “correction gray value” added to the original gray values.
     Default value: 0.7
     Suggested values: 0.3, 0.5, 0.7, 1.0, 1.5, 2.0, 3.0, 5.0
     Typical range of values: 0.0 ≤ Factor ≤ 5.0
     Minimum increment: 0.01
     Recommended increment: 0.2
     Restriction: (0 < Factor) && (Factor < 5)
 */
 public  void Illuminate(ImageBase src_Image, ImageBase dst_Image, MaskBase maskIlluminate, HTuple factor)
 {
     HObject dst;
     HOperatorSet.Illuminate(src_Image.GetImage, out dst, maskIlluminate.W, maskIlluminate.H, factor);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
Exemplo n.º 3
0
 public void GenImageConst(MaskBase picturesize)//創造一個空白的圖片給Image(預設值為0) 
 {
     HOperatorSet.SetSystem("init_new_image", "true");
     Image.Dispose();
     HOperatorSet.GenImageConst(out Image, "byte", picturesize.W, picturesize.H);
 }