How can I integrate acquired image with drop down functions?

1 visualización (últimos 30 días)
rajatajay thakur
rajatajay thakur el 29 de Jun. de 2020
Respondida: rajatajay thakur el 17 de Jul. de 2020
I am new to app designer and working on a project where I have added two push button and acquired the static as well as real time image via webcam respectively. Now I want to perform task on it like 2-D fft and binarize it but I want user to choose which image he wants to operate and then perform task so I have given 2dropdown one for 2d FFT with static or captured image and same for next one how can I integrate the image acquired with drop down and perform Acton's like fft and binarize it. Urgent help needed.

Respuestas (2)

Kavya Vuriti
Kavya Vuriti el 2 de Jul. de 2020
Editada: Kavya Vuriti el 2 de Jul. de 2020
Hi,
From the question, I understand that the two images captured must be shared between the callbacks of Buttons and Drop Down. I think there are two ways to do this:
  • Define data as properties to make them accessible to all functions and callbacks in an app.
  • Send the variables to MATLAB base workspace and then access them from base workspace wherever required. This can be done using assignin and evalin functions respectively.
Here is the detailed description on defining properties in an app. Hope this helps!!
  1 comentario
rajatajay thakur
rajatajay thakur el 17 de Jul. de 2020
Hey kavya thanks for you help but now I am stuck into a more problem where I am using sliders to adjust the brightness and contrast of the image which I have acquired but pushing two separate button one for static image and other for real time web cam image . The help what I need is that I want the images acquired earlier by pushing any one of the button and displaying them on axes say 3 now I have other button for image processing which is integrated with sliders call back the sliders work but the image what is acquired dosent come it shows a black screen.help needed.

Iniciar sesión para comentar.


rajatajay thakur
rajatajay thakur el 17 de Jul. de 2020
Brightness = app.Brightness Slider.Value;
function Image Processing Button Pushed (app, event)
Contrast = apps.Contrast Slider.Value;
uax=app.UIAxes 2;
J1 =uint8(double(uax)*Contrast + Brightness); imshow(J 1, parent', app.UIAxes 4);
This is the code I have used help to know how to bring image from earlier pushbuttons and perform action in other push button

Categorías

Más información sobre Image Processing and Computer Vision en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by