Réponse apportée
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...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

environ 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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))

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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)).'...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Réponse apportée
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 ...

plus de 3 ans il y a | 0

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

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 0

Réponse apportée
[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 ...

plus de 3 ans il y a | 0

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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)...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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-...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

| A accepté

Réponse apportée
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 ...

plus de 3 ans il y a | 1

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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; ...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 0

| A accepté

Réponse apportée
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...

plus de 3 ans il y a | 1

Charger plus