how can I adjust the contrast of an image in cpselect window. My fixed image has a bad contrast compared to my moving image and I want to fix this. Can anyone help?

1 回表示 (過去 30 日間)
function [xymoving_out,xyfixed_out]=Two_D_Landmark_Reg_082715(fixed_image,moving_image) moving=moving_image; fixed=fixed_image; fixed=imcontrast(fixed); show_moving=imshow(moving,[]); get_property=get(show_moving,'CData'); conadj_moving=imadjust(get_property); close all [xymoving_out,xyfixed_out]=cpselect(conadj_moving,fixed,'wait',true); end I try to run this and I get the rolling error
Error using iptcheckhandle (line 54) Function IMCONTRAST expected its first input argument, H, to be a valid handle to a single graphics object.
Error in imcontrast (line 70) iptcheckhandle(handle, {'figure', 'axes', 'image', 'uipanel'},...
Error in Two_D_Landmark_Reg_082715 (line 14) fixed=imcontrast(fixed);
  1 件のコメント
Deepak Kumar
Deepak Kumar 2016 年 6 月 6 日
I am having the same problem. Replying to the comment to follow any answers that might come.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeExplore and Edit Images with Image Viewer App についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by