public static void AffineTransImage(ImageBase srcImage, ImageBase dstImage, HTuple row, HTuple col , HTuple ang)
 {
     HTuple hv_HomMat2D=null;
     HObject tempImage = null;
     HOperatorSet.VectorAngleToRigid(srcImage.GetWidth / 2, srcImage.GetHeight / 2, 0 ,row ,col, ang , out hv_HomMat2D);
     HOperatorSet.AffineTransImage(srcImage.GetImage, out tempImage, hv_HomMat2D,"constant", "'false");
     dstImage.CopyImagetoThis(tempImage);
     tempImage.Dispose();
 }
예제 #2
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 static 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();
 }
예제 #3
0
 public static void CoherenceEnhancingDiff(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.CoherenceEnhancingDiff(src_Image.GetImage, out dst, 0.5, 3, 0.5, 10);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #4
0
 /*CoherenceEnhancingDiff
 Sigma (input_control)  real → (real)
 Smoothing for derivative operator.
     Default value: 0.5
     Suggested values: 0.0, 0.1, 0.5, 1.0
     Restriction: Sigma >= 0
 Rho (input_control)  real → (real)
 Smoothing for diffusion coefficients.
     Default value: 3.0
     Suggested values: 0.0, 1.0, 3.0, 5.0, 10.0, 30.0
     Restriction: Rho >= 0
 Theta (input_control)  real → (real)
 Time step.
     Default value: 0.5
     Suggested values: 0.1, 0.2, 0.3, 0.4, 0.5
     Restriction: (0 < Theta) <= 0.5
 Iterations (input_control)  integer → (integer)
 Number of iterations.
     Default value: 10
     Suggested values: 1, 5, 10, 20, 50, 100, 500
     Restriction: Iterations >= 1
 */
 public static void CoherenceEnhancingDiff(ImageBase src_Image, ImageBase dst_Image, HTuple sigma, HTuple rho, HTuple theta, HTuple iterations)
 {
     HObject dst;
     HOperatorSet.CoherenceEnhancingDiff(src_Image.GetImage, out dst, sigma, rho, theta, iterations);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
 public static void ZoomImageFactor(ImageBase srcImage, ImageBase dstImage, HTuple scaleWidth, HTuple scaleHeight)
 {
     HObject tempImage = null;
     HOperatorSet.ZoomImageFactor(srcImage.GetImage, out tempImage, scaleWidth, scaleHeight, "constant");
     dstImage.CopyImagetoThis(tempImage);
     tempImage.Dispose();
 }
예제 #6
0
 public static void EquHistoImage(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.EquHistoImage(src_Image.GetImage, out dst);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #7
0
 public static void Emphasize(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.Emphasize(src_Image.GetImage, out dst, 7, 7, 1);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #8
0
 public static void ShockFilter(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.ShockFilter(src_Image.GetImage, out dst, 0.5, 10, "canny", 1);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #9
0
 /*ShockFilter
 Theta (input_control)  real → (real)
 Time step.
     Default value: 0.5
     Suggested values: 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7
     Restriction: (0 < Theta) <= 0.7
 Iterations (input_control)  integer → (integer)
 Number of iterations.
     Default value: 10
     Suggested values: 1, 3, 10, 100
     Restriction: Iterations >= 1
 Mode (input_control)  string → (string)
 Type of edge detector.
     Default value: 'canny'
     List of values: 'canny', 'laplace'
 Sigma (input_control)  real → (real)
 Smoothing of edge detector.
     Default value: 1.0
     Suggested values: 0.0, 0.5, 1.0, 2.0, 5.0
     Restriction: Theta >= 0
     */
 public static void ShockFilter(ImageBase src_Image, ImageBase dst_Image, HTuple theta, HTuple iterations, HTuple mode, HTuple sigma)
 {
     HObject dst;
     HOperatorSet.ShockFilter(src_Image.GetImage, out dst, theta, iterations, mode, sigma);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #10
0
 public static void ScaleImageMax(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.ScaleImageMax(src_Image.GetImage, out dst);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }
예제 #11
0
 public static void Illuminate(ImageBase src_Image, ImageBase dst_Image)
 {
     HObject dst;
     HOperatorSet.Illuminate(src_Image.GetImage, out dst, 101, 101, 0.7);
     dst_Image.CopyImagetoThis(dst);
     dst.Dispose();
 }