답변 있음
Hi, How to segment(divide) an image into four halves of "different dimensions" automatically as shown in the attached image using MATLAB?
Here's one idea. inpict = imread('https://www.mathworks.com/matlabcentral/answers/uploaded_files/1234097/cars.jpg'); graypic...

3년 초과 전 | 1

| 수락됨

답변 있음
I'm trying to create a [100x100] symmetric matrix with diagonals counting 102030405.......
If you want what's given in the screenshot: N = 7; % the size of the output matrix % generate the union of the edge vectors ...

3년 초과 전 | 0

답변 있음
Why is matlab seeing images rotated?
See this thread: https://www.mathworks.com/matlabcentral/answers/1861338-find-width-and-height-of-jpg-image Attached is an u...

3년 초과 전 | 0

답변 있음
I need to add and multiply a vetor
You mean something like this? u = cos(0:pi/20:pi); v = sum(u(2:end) .* u(1:end-1))

3년 초과 전 | 1

| 수락됨

답변 있음
errors when running a function
It's unclear what situation you're in. It appears that you don't have Image Processing Toolbox. I thought that im2gray() was p...

3년 초과 전 | 0

| 수락됨

답변 있음
How to change a sequence of strings into a sequence of binary?
Consider: str = 'Daniel'; binary = dec2bin(str); % need to keep the structure for the moment string = char(bin2dec(binary)).'...

3년 초과 전 | 0

| 수락됨

답변 있음
How can I convert my image to a red image
That would work if you wanted a red image. It would even work if your input image were single-channel. inpict = imread('came...

3년 초과 전 | 0

| 수락됨

답변 있음
filling holes in the masked image please help me to replace blue color background of given giraffe image with forest image.
See this thread about the same image set. For what it's worth, I didn't have the source images, but it should be a start. http...

3년 초과 전 | 0

답변 있음
HI so im changing the color of the image to green and blue but its not working one of them gives an error and the other gives a red color
What is the size of app.Image? If it's not MxNx3, then you'll have to find out why it's not. For example, it's possible that...

3년 초과 전 | 0

| 수락됨

답변 있음
Difference between binary and grayscale images?
Interpretations may vary, but I think a common general description would be. This is just my interpretation. A grayscale image...

3년 초과 전 | 1

답변 있음
Is it possible to visualise NxNxN mesh/matrix as a figure or image?
You can probably use volshow() or the Volume Viewer app, depending on how things are scaled. It really depends what the data lo...

3년 초과 전 | 0

답변 있음
Calculate minimum distance in image
Here's one way. You can also use pdist2() if you have it. inpict = imread('https://www.mathworks.com/matlabcentral/answers/u...

3년 초과 전 | 0

| 수락됨

답변 있음
What can we do with the thread "license-manager-error-9"?
I know that the prevailing recommendation is to let TMW police their own disaster threads, but I'll still delete anything new th...

3년 초과 전 | 1

| 수락됨

답변 있음
how to solve image process error using MATLAB
There are many errors. I'm just going to add comments. This needs a lot of cleanup. A='peppers.png'; % <-- i'm using this ins...

3년 초과 전 | 1

답변 있음
How to extract RGB
I'm just going to throw this down here. MATLAB has no native HSI conversion tools. It has HSV tools, but if you actually want ...

3년 초과 전 | 0

답변 있음
matrix normalization in matlab
Since R2018a, you can use normalize() to perform normalization in various different ways. A = 1:6 B1 = normalize(A,'range') % ...

3년 초과 전 | 0

답변 있음
Kindly explain the code (each step in detail) thanks.
First part % Different ways to convert RGB image into grey scale <-- misleading comment clear all; % removes all variables, gl...

3년 초과 전 | 0

답변 있음
[Ask Help] - Erode/Erosion Matrix
If the goal is to look for a certain neighborhood, you can use bwlookup() for this. A = [1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 1 1 1 ...

3년 초과 전 | 0

답변 있음
How can insert PNG image as marker and remove transparent region?
You need to read the alpha data from the image and then apply it to the image object. See this thread. I include a similar m...

3년 초과 전 | 1

| 수락됨

답변 있음
How to standardize an array so that the maximum value is 1 and minimum is -1 keeping the zero value as zero?
I'm not into statistics, so I have no idea if this has merit. I'm occasionally after preserving linearity and the center (zero)...

3년 초과 전 | 1

답변 있음
Finding the width of a blob perpendicular to the major axis
Unless you have some existing means to find the major axis, I'd still use feret properties to rotate the object. The rest of th...

3년 초과 전 | 0

| 수락됨

답변 있음
I want to rotate the rotated image in the forward direction. How do I do this?
For this specific image, you could also try calculating the angles by finding certain features. For what it's worth: % the i...

3년 초과 전 | 0

| 수락됨

답변 있음
how can I multiply two different size matrices in iterations like 7x7 and 4x4?
See these answers to a similar question: https://www.mathworks.com/matlabcentral/answers/1867698-shift-a-square-matrix-along-a-...

3년 초과 전 | 0

| 수락됨

답변 있음
Crop and change perspective of image
You can use fitgeotrans() and imwarp(). It's a little more generalized, so it's not exactly a one-liner. Here is one example c...

3년 초과 전 | 1

| 수락됨

답변 있음
How do I get pixel intensity values of images stored in an array ?
That would be correct, assuming that i is a real-valued integer between 1 and size(adj,3). The output will be the value at the ...

3년 초과 전 | 1

답변 있음
How can I put single quotes inside single quotes?
You can escape single quotes with another single quote. For sake of clarity, I'm going to transpose the output. vector = ['a...

3년 초과 전 | 0

| 수락됨

답변 있음
Displaying 16 bit images
It's hard to know what you're doing wrong exactly since you didn't give a code example, but I'm going to guess. Imshow() will...

3년 초과 전 | 0

| 수락됨

답변 있음
Same code I can successfully run in R2021b but in R2016a it is showing Error using - Matrix dimensions must agree. What should I change to run this in R2016a?
R2016b introduced implicit array expansion. You're relying on that. The loops are also unnecessary. i = 10; j = 5; r1 = 1; ...

3년 초과 전 | 0

| 수락됨

답변 있음
Replace the image background
I don't know what you expect. Handing off your assignment in whole with zero effort shown on your part shouldn't be expected to...

3년 초과 전 | 0

| 수락됨

답변 있음
Can I write a function that can create nested loops
rng(123) % make sure inputs are repeatable Ftu = rand(1,49); qu = rand(1,49); qd = zeros(1,49); % preallocate qd(:,1) = Ft...

3년 초과 전 | 1

더 보기