I am trying to build the User interface, whereby when binarize is clicked, it gives its slider and its respective MeanIntensity and StandardDeviation. The same for EdgeDetect and MorpologicalBinarize. I attached the expected output Kindly please help in it.Thank you for your consideration

Expected output

With[{img1 =image},
    Binarize[img1, a],
    EdgeDetect[img1, b],
    MorphologicalBinarize[img1, c],
    {{a1, {a, 0, 1}}, {{b1, {b, 1, 2}}, {{c1, {c, 0, 1}}}}}]],

   ImageMeasurements[a1, "MeanIntensity"],
   ImageMeasurements[a1, "StandardDeviation"],
   ImageMeasurements[b1, "MeanIntensity"],
   ImageMeasurements[b1, "StandardDeviation"],
   ImageMeasurements[c1, "MeanIntensity"],
   ImageMeasurements[c1, "StandardDeviation"]],

  {segmentation, {"Binarize"   , "Edge Detect"    , 
    "Morphological Binarize"}},
  {{measurement, "Mean"}, {"Mean", "Standard Deviation"}}]]
  • 2
    $\begingroup$ You asked same question here inlcude-binarize-methods-in-manipulate and when asked there to clarify when you have to use With you did not reply. So how is this question different from your last question? Kindly please help in it. What exactly is the issue here? You just said to help. But did not describe what is the problem. $\endgroup$
    – Nasser
    Apr 30, 2020 at 4:39
  • $\begingroup$ Hi, because, I found that according to the documentation: "If an explicit threshold value is given, Binarize ignores the Method option." So, I will use this method, but the code I am writing is giving me error. $\endgroup$
    – M.K Imr
    May 1, 2020 at 5:20


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.