フィルターのクリア

Info

この質問は閉じられています。 編集または回答するには再度開いてください。

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

1 回表示 (過去 30 日間)
amir nemat
amir nemat 2018 年 3 月 5 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
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 件のコメント
Jan
Jan 2018 年 3 月 5 日
"is not showing well"? I cannot see this. How would "well" look like?

回答 (0 件)

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by