Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
mibImageProfileIntegrate.m File Reference

calculate image intensity profile for line ROI based on code by Damien in comments of http://se.mathworks.com/matlabcentral/fileexchange/11568-extract-integrated-intensity-profiles-from-image More...

Functions

function [ ProfileOut , profileLength , samplePntsX , samplePntsY ] = mibImageProfileIntegrate (img, x1, y1, x2, y2, profileWidth, debug)
 calculate image intensity profile for line ROI based on code by Damien in comments of http://se.mathworks.com/matlabcentral/fileexchange/11568-extract-integrated-intensity-profiles-from-image
 

Detailed Description

calculate image intensity profile for line ROI based on code by Damien in comments of http://se.mathworks.com/matlabcentral/fileexchange/11568-extract-integrated-intensity-profiles-from-image

Function Documentation

◆ mibImageProfileIntegrate()

function [ ProfileOut , profileLength , samplePntsX , samplePntsY ] = mibImageProfileIntegrate ( img,
x1,
y1,
x2,
y2,
profileWidth,
debug )

calculate image intensity profile for line ROI based on code by Damien in comments of http://se.mathworks.com/matlabcentral/fileexchange/11568-extract-integrated-intensity-profiles-from-image

Parameters
imgan image to be used for intensity calculations ([height, width, colors])
x1x1 coordinate for the line
y1y1 coordinate for the line
x2x2 coordinate for the line
y2y2 coordinate for the line
profileWidtha number that defines the width of the intensity profile
debug[optional] - a switch to show debug plots
Return values
ProfileOutmatrix with intensity profiles for all color channels [colChannel, 1:points]
profileLengthlength of the intensity profile in pixels
samplePntsXx coordinates of the X sample points as (widthIndex, Xcoordinate]
samplePntsYy coordinates of the Y sample points as (widthIndex, Ycoordinate]

Referenced by mibMeasure.DistanceFun(), and mibMeasureToolController.previewIntensityProfile().

Here is the caller graph for this function: