001// 002// This file is auto-generated. Please don't modify it! 003// 004package org.opencv.photo; 005 006import org.opencv.photo.Tonemap; 007 008// C++: class TonemapMantiuk 009/** 010 * This algorithm transforms image to contrast using gradients on all levels of gaussian pyramid, 011 * transforms contrast values to HVS response and scales the response. After this the image is 012 * reconstructed from new contrast values. 013 * 014 * For more information see CITE: MM06 . 015 */ 016public class TonemapMantiuk extends Tonemap { 017 018 protected TonemapMantiuk(long addr) { super(addr); } 019 020 // internal usage only 021 public static TonemapMantiuk __fromPtr__(long addr) { return new TonemapMantiuk(addr); } 022 023 // 024 // C++: float cv::TonemapMantiuk::getScale() 025 // 026 027 public float getScale() { 028 return getScale_0(nativeObj); 029 } 030 031 032 // 033 // C++: void cv::TonemapMantiuk::setScale(float scale) 034 // 035 036 public void setScale(float scale) { 037 setScale_0(nativeObj, scale); 038 } 039 040 041 // 042 // C++: float cv::TonemapMantiuk::getSaturation() 043 // 044 045 public float getSaturation() { 046 return getSaturation_0(nativeObj); 047 } 048 049 050 // 051 // C++: void cv::TonemapMantiuk::setSaturation(float saturation) 052 // 053 054 public void setSaturation(float saturation) { 055 setSaturation_0(nativeObj, saturation); 056 } 057 058 059 @Override 060 protected void finalize() throws Throwable { 061 delete(nativeObj); 062 } 063 064 065 066 // C++: float cv::TonemapMantiuk::getScale() 067 private static native float getScale_0(long nativeObj); 068 069 // C++: void cv::TonemapMantiuk::setScale(float scale) 070 private static native void setScale_0(long nativeObj, float scale); 071 072 // C++: float cv::TonemapMantiuk::getSaturation() 073 private static native float getSaturation_0(long nativeObj); 074 075 // C++: void cv::TonemapMantiuk::setSaturation(float saturation) 076 private static native void setSaturation_0(long nativeObj, float saturation); 077 078 // native support for java finalize() 079 private static native void delete(long nativeObj); 080 081}