Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

Problem with showing red and blue line in image when use imwrite

1 Ansicht (letzte 30 Tage)
amir nemat
amir nemat am 5 Mär. 2018
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
I have written a code which process a image. However, when I have run it in matlab prompt, it is working. When i test it in my program, it does not working. As you can see the blue and red part of the image is not showing well.
the original image is
When I have run the program inside my main program, it save it as
However, it should be saved like this
This is the main part of the main program which call the built_up_extraction function
Thresh=0.03;
[im1 final_result]=built_up_extraction(roi_image,Thresh);
[siz1 siz2]=size(final_result);
res{counter}=sum(sum(final_result))/(siz1*siz2);
previous=cd;
cd(handles.path);
mkdir 'Hybrid_base_tech';
cd 'Hybrid_base_tech';
imwrite(im1,strcat(handles.file,'Hybrid_base_tech',num2str(counter1),'_',num2str(counter2),'.bmp'));
imwrite(final_result,strcat(handles.file,'Mask_base_tech',num2str(counter1),'_',num2str(counter2),'.jpg'));
cd(previous);
  1 Kommentar
Jan
Jan am 5 Mär. 2018
"is not showing well"? I cannot see this. How would "well" look like?

Antworten (0)

Diese Frage ist geschlossen.

Community Treasure Hunt

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

Start Hunting!

Translated by