Matlab实现X射线图像的灰度窗代码——imadjust函数使用

    技术2022-08-01  68

    close all; clear; clc; low=140; %下限(调节) high=164; %上限(调节) k=1; a=low/255; b=high/255; img_a = imread('aimimg.jpg'); img_proc = imadjust(img_a,[a b],[0 1],k); figure; subplot(1,2,1);imshow(uint8(img_a)); subplot(1,2,2);imshow(uint8(img_proc)); set(gcf,'position',[10,0,1550,800]);

     

    Processed: 0.029, SQL: 9