Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
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))

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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)).'...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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...

más de 3 años hace | 1

Respondida
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 ...

más de 3 años hace | 0

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

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 0

Respondida
[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 ...

más de 3 años hace | 0

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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)...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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-...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

| aceptada

Respondida
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 ...

más de 3 años hace | 1

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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; ...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 0

| aceptada

Respondida
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...

más de 3 años hace | 1

Cargar más