Answered
Function definitions are not permitted in this context.
OP was running R2014b, so local functions are not allowed in script files.

ungefär 2 månader ago | 1

Answered
how can i enter the pi symbol on keyboard
It depends where you're trying to enter it and why, but these are some examples https://www.mathworks.com/matlabcentral/answers...

ungefär 2 månader ago | 0

Answered
I wrote this code for detecting the edge of the image but the result is different that the built in function result. what is the problem ?
IPT edge() uses multiple different methods for finding edges, then it binarizes and skeletonizes the results. Since we still do...

ungefär 2 månader ago | 0

Answered
Adaptative filter problem with Matlab
Hmh. Well. I don't know what to do with this on the forum, so I'll just attach it. Both files have been fixed. Here's a short...

ungefär 2 månader ago | 0

Answered
Matrix1= randn(3,4,5); Matrix1(2,:,:)是一个1行、4列、5层的三维矩阵; Matrix1(:,2,:)是一个3行、1列、5层的三维矩阵; Matrix1(:,:,2)却是一个3行、4列的二维矩阵。为什么?
This array has 3 rows, 4 columns, and 5 pages. M = randn(3,4,5); Try to visualize it in three dimensions: The colon, : ope...

ungefär 2 månader ago | 0

| accepted

Answered
converting and shifting photo from osciloscope
Again, this would normally be my recommendation: https://www.mathworks.com/matlabcentral/answers/1929130-searching-for-a-line-o...

ungefär 2 månader ago | 0

Answered
Unable to perform assignment because the size of the left side is 1-by-1 and the size of the right side is 3-by-1.
Just use imapplymatrix() inpict = imread('peppers.png'); M = [0.393 0.769 0.189; 0.349 0.686 0.168; 0.272 0.534 0.131]; out...

ungefär 2 månader ago | 0

Answered
Displaying NITFs containing JPEG2000 imagery
Try: https://www.mathworks.com/matlabcentral/fileexchange/42178-read-nitf-file-with-jpeg-2000-image-compression Given a filena...

ungefär 2 månader ago | 0

Answered
reading NITF jpeg2000 compressed images
Try: https://www.mathworks.com/matlabcentral/fileexchange/42178-read-nitf-file-with-jpeg-2000-image-compression Given a filena...

ungefär 2 månader ago | 0

Answered
'Mean Intensity Gradiënt'
Here's my guess % a uint8 grayscale image inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1112...

ungefär 2 månader ago | 0

Answered
graythresh dosn't work with variables other than uint8?
Like many tools in IPT, graythresh() depends on the class of the image array to know what its scale is. When you change classes...

ungefär 2 månader ago | 2

| accepted

Answered
darken an image issue
It is darkening the image, but the output is the wrong class. You're presuming that all images are single-channel grayscale ima...

ungefär 2 månader ago | 0

Answered
i want to display multiple images in the folder using montage function, to display as all images in one rectangular frame. please any one help me
The variable fileNames is a cell array. It doesn't have a .names field. It's a list of filenames, but the filenames don't have...

ungefär 2 månader ago | 0

Answered
Use imhistmatch() function on non-rectangular regions of images
There's no reason to be filling the input images with black. There's no need to use loops to do it. You already have a mask an...

ungefär 2 månader ago | 1

Answered
How to plot a filled rectangle without edge?
Disregarding recent changes to options handling, this seems like it was always an adequately answerable question. It was just u...

ungefär 2 månader ago | 0

Answered
How to dewarp an image?
See: fitgeotrans() imwarp() See also: https://www.mathworks.com/matlabcentral/answers/319165-how-to-correct-the-skewed-persp...

2 månader ago | 0

Answered
imwarp square in rectangular array to a rectangle in same rectangular array
I think the problem here was twofold. The input point list was flipped [y x], and the output point list was not expressed in th...

2 månader ago | 0

Answered
Why is 'Clip Limit' reversed in the 'adaptisteq' code?
In what "original CLAHE function"? IPT's adapthisteq() follows roughly the same behavior as Karel Zuiderveld's original examp...

2 månader ago | 1

Answered
split plane into set of squares
It's not clear where the bin limits actually are, but: % the data x = [1.33 1.89 9.27 9.46 9.20 7.43 6.08 5.57 6.70]; y = [8....

2 månader ago | 0

Answered
compute rotation angle of binary shape image without having primary image(image before rotation)
As far as I recall, regionprops() has never had a Rotation property, and even if it did, that wouldn't be how it's invoked. Let...

2 månader ago | 0

| accepted

Answered
Segmented blur fails when adding segments on image
This is closer to how I'd do it. This is easier to use, it's not restricted to single-channel images, and it correctly handles ...

2 månader ago | 0

Answered
Colo alteration image acquisition GUI
If you want to use image() instead of imshow(), you'll need to read the synopsis. RGB inputs are rendered in truecolor, and are...

2 månader ago | 0

Answered
Numbers on the middle of colorbar in MATLAB
Assuming a discrete colorbar, % the setup z = magic(3); imagesc(z) % the values associated with each discrete level tick...

2 månader ago | 1

Answered
extracting table data from a plot picture question
It depends how the images vary and what you expect. This would normally be my recommendation: https://www.mathworks.com/matlab...

2 månader ago | 2

Answered
How to detect a circle and then lines in the circle? (Reading time off clock image)
I'm going to do this in a particular way because I want to, not because it's robust or univerally appropriate. Let's start by...

2 månader ago | 0

Answered
How do I fuse a JPEG image and a PNG with transparency.
Here's something simple for dealing with the arbitrary overlap. % inputs [FG,~,FGa] = imread('cancellation.png'); BG = imread...

2 månader ago | 0

Answered
how to generate correct logical mask of the size of shape file?
I don't have everything to run your example, but the last lines are a problem at the least.a Use numel() to return the total n...

2 månader ago | 0

Answered
recover color on image
I guess if I'm going to bump threads by fixing the formatting, I could at least try to answer them. This collection of threads ...

2 månader ago | 0

Answered
Unsharp mask amplification - limiting local contrast
I'm not sure I know what the goals are here, but I'll go. Instead of increasing global contrast, try a piecewise approach. % c...

2 månader ago | 0

Answered
how to extract connected components with similar height
There are some problems here. % the input image inpict = imread('fruittext.png'); inpict = im2gray(inpict); mask = imbinariz...

2 månader ago | 0

Load more