필터 지우기
필터 지우기

How can I integrate acquired image with drop down functions?

조회 수: 1 (최근 30일)
rajatajay thakur
rajatajay thakur 2020년 6월 29일
답변: rajatajay thakur 2020년 7월 17일
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.

답변 (2개)

Kavya Vuriti
Kavya Vuriti 2020년 7월 2일
편집: Kavya Vuriti 2020년 7월 2일
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
rajatajay thakur
rajatajay thakur 2020년 7월 17일
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.

댓글을 달려면 로그인하십시오.


rajatajay thakur
rajatajay thakur 2020년 7월 17일
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

카테고리

Help CenterFile Exchange에서 Image Processing and Computer Vision에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by