|
@@ -294,6 +294,45 @@ IPE.app = {
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ $('input#adjust-isodata-thresholding-bottom-controls-container').on('click', function() {
|
|
|
+ console.log(textureInfo.info.thresholdIndex_isodata);
|
|
|
+ GenericSlider.setPosSlider(
|
|
|
+ slider = $( "#gray-slider" ),
|
|
|
+ sliderInputs = $('input.gray'),
|
|
|
+ minGray,
|
|
|
+ textureInfo.info.thresholdIndex_isodata
|
|
|
+ );
|
|
|
+ $(document).trigger('opacityBordersChanged', { minGray: minGray, maxGray: textureInfo.info.thresholdIndex_isodata});
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ $('input#adjust-otsu-thresholding-bottom-controls-container').on('click', function() {
|
|
|
+ console.log(textureInfo.info.thresholdIndex_otsu);
|
|
|
+ GenericSlider.setPosSlider(
|
|
|
+ slider = $( "#gray-slider" ),
|
|
|
+ sliderInputs = $('input.gray'),
|
|
|
+ minGray,
|
|
|
+ textureInfo.info.thresholdIndex_otsu
|
|
|
+ );
|
|
|
+
|
|
|
+ $(document).trigger('opacityBordersChanged', { minGray: minGray, maxGray: textureInfo.info.thresholdIndex_otsu});
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
+ $('input#adjust-yen-thresholding-bottom-controls-container').on('click', function() {
|
|
|
+ console.log(textureInfo.info.thresholdIndex_yen);
|
|
|
+ GenericSlider.setPosSlider(
|
|
|
+ slider = $( "#gray-slider" ),
|
|
|
+ sliderInputs = $('input.gray'),
|
|
|
+ minGray,
|
|
|
+ textureInfo.info.thresholdIndex_yen
|
|
|
+ );
|
|
|
+
|
|
|
+ $(document).trigger('opacityBordersChanged', { minGray: minGray, maxGray: textureInfo.info.thresholdIndex_yen});
|
|
|
+
|
|
|
+ });
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -616,6 +655,8 @@ function initSliders() {
|
|
|
sliderInputs = $('input.gray'),
|
|
|
minGray,
|
|
|
maxGray,
|
|
|
+ minGray,
|
|
|
+ maxGray,
|
|
|
function(values) {
|
|
|
$(document).trigger(
|
|
|
'opacityBordersChanged',
|
|
@@ -655,6 +696,8 @@ function initLayerSliders() {
|
|
|
sliderInputs = $('input.xlayer'),
|
|
|
currentVolumeDimension.xmin,
|
|
|
currentVolumeDimension.xmax,
|
|
|
+ currentVolumeDimension.xmin,
|
|
|
+ currentVolumeDimension.xmax,
|
|
|
function(values) {
|
|
|
dimMin = currentVolumeDimension.xmin;
|
|
|
dimMax = currentVolumeDimension.xmax;
|
|
@@ -676,6 +719,8 @@ function initLayerSliders() {
|
|
|
sliderInputs = $('input.ylayer'),
|
|
|
currentVolumeDimension.ymin,
|
|
|
currentVolumeDimension.ymax,
|
|
|
+ currentVolumeDimension.ymin,
|
|
|
+ currentVolumeDimension.ymax,
|
|
|
function(values) {
|
|
|
dimMin = currentVolumeDimension.ymin;
|
|
|
dimMax = currentVolumeDimension.ymax;
|
|
@@ -697,6 +742,8 @@ function initLayerSliders() {
|
|
|
sliderInputs = $('input.zlayer'),
|
|
|
currentVolumeDimension.zmin,
|
|
|
currentVolumeDimension.zmax,
|
|
|
+ currentVolumeDimension.zmin,
|
|
|
+ currentVolumeDimension.zmax,
|
|
|
function(values) {
|
|
|
dimMin = currentVolumeDimension.zmin;
|
|
|
dimMax = currentVolumeDimension.zmax;
|