Answered
hi ,I processed images on a folder. Now I want to save all the processed photos in the folder, but only the last photo is saved, what should I do?
Considering that there's missing code and open scopes, we're left to guess whether anything is inside of a loop or not. Either ...

9 giorni ago | 1

Answered
How can I overlap two images/pictures in Matlab?
There's an awful lot of traffic on this question. I don't know that passers-by actually have the same intent, but let's assume ...

9 giorni ago | 0

Answered
How to crop image by specific size and location ?
The rect parameter given to imcrop is [xoffset yoffset xwidth ywidth] I = imread('https://www.mathworks.com/matlabcentral/answe...

11 giorni ago | 0

| accepted

Answered
Hi, can i know how to find the orientation of an object?
Well, here's this. It's not robust, but then again, the test image isn't a real process image either, so I'm going to consider ...

11 giorni ago | 0

| accepted

Answered
How to make subplot size bigger?
Disregarding subplot arrangement, the edges are obscuring the faces due to the mesh resolution. figure colormap(parula(256))...

11 giorni ago | 0

Answered
Combine masked images into one, with each mask having a unique color.
If those would work for you, then you might also consider something like these: % do a simple mean of colored frames % a set...

11 giorni ago | 0

| accepted

Answered
removing some data in a 4d plot
You have to apply the same operation to all of the vectors. load 4dplot.txt x = X4dplot(:,1); ...

12 giorni ago | 0

| accepted

Answered
Create Size 256 × 150 image that have 256 colors on it starting 0 till 255 (the first row is black, the last row is white, and in between all the gray shades).
Something like this: A = uint8(repmat((0:255).',[1 150])); imshow(A)

12 giorni ago | 0

| accepted

Answered
How to count the number of pixels in each section of an image set?
Depending on what your images are like and what you need, this may be a start. You can calculate the number of true (nonzero) p...

12 giorni ago | 0

Answered
Mirror about Y axis
Something like this: a = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; b = [1 2 3 4 5 6 7 8 9 10 11 12 13 14]; plot(a,b); hax = gc...

12 giorni ago | 0

| accepted

Answered
How does imresize() calculate the weights and indices for interpolation?
If I recall, this is essentially a windowed operation on a vector at this point, and you're finding the indices associated with ...

13 giorni ago | 0

Answered
How can the image Processing of .tif file of size 763x1023x4 be done?
Imshow() can only represent 1-channel (grayscale) images or 3-channel images (represented as RGB). So whatever you do to disp...

13 giorni ago | 1

| accepted

Answered
How to change text in plot follow colormap?
Consider the crude example: % you have some plots already plot(-0.5:4.5,0.5:5.5) cmap = winter(5); % use the colormap for ...

13 giorni ago | 0

| accepted

Answered
How to find cumulative sum from from-to matrix?
From the other comment: A = [0 10 20 30; 40 0 50 60; 70 80 0 90; 100 110 120 0]; B = [1 2 3 4;2 4 3 1]; % x (1,2) (2,3) ...

14 giorni ago | 0

| accepted

Answered
please help me !!!
As mentioned in the comment you left, t is not a nonzero integer, so you can't use it as an index on the LHS of the assignment...

14 giorni ago | 0

Answered
dominant color for an RGB image
For sake of alternatives, MIMT imstats() has a few options that might be of use here. While imstats can obviously calculate t...

14 giorni ago | 0

Answered
How to draw a L*a*b* colour space or HSV colour space (2D)?
One thing that should be pointed out is that when plotting these things in a rectangular image, some consideration should be giv...

14 giorni ago | 0

Answered
How to find cumulative sum in matrix?
Here is one way: A = [10 20 30; 40 50 60; 70 80 90]; B = [1 2 3; 2 3 1; 3 2 1]; nrows = size(A,1); C = cumsum(A((1:nrows)....

14 giorni ago | 0

| accepted

Answered
GUIDE brightness/contrast function explained
I wouldn't say the code "works perfectly", since it doesn't do what is implied that it does -- though in its defense, its lack o...

15 giorni ago | 0

Answered
How do I get the value of C and ws in adaptive thresholding?
You have to select them based on the image content and your own intent. Refer to the documentation: https://homepages.inf.ed.a...

15 giorni ago | 0

Answered
add a moving image over a plotted trajectory
Assuming you actually want it to move in real time, this should be a start x = 0:pi/100:2*pi; y = sin(x); plot(x, y); hold on...

16 giorni ago | 0

| accepted

Answered
How to calculate the total pixel value in volume segmentation
I'm not quite sure if this is what you're after, but this: pnz = nnz(P); will give you the total number of nonzero elements in...

16 giorni ago | 0

| accepted

Answered
one of my nested functions isnt recognising a function made in another function? i know the codes messy and could be improved but i just want to make it work first
Since I don't even know how to call the function or what it's supposed to do, I can't really do much but point out problems and ...

20 giorni ago | 0

Answered
How to access images(like Image1,Image2...)from a folder and pass through a code in Matlab?
You created a variable called imgName, but you're not using it. input_image = imread(imgName,'.jpg'); Of course, since this ...

20 giorni ago | 0

Answered
How do I add "color" to an image?
There really isn't anything in base MATLAB or IPT for doing color adjustment. I'm not familiar with Photoshop, and don't have...

20 giorni ago | 0

Answered
How can I change the color of the hair such that it has the same texture as the original hair?
There are a number of things going wrong here. I kind of wish this were active. Let's start with OP's example. Since the or...

20 giorni ago | 0

Answered
pixelation
It can be simple enough: inpict = imread('peppers.png'); sz = size(inpict); blocksize = [10 10]; outpict = imresize(inpict...

21 giorni ago | 0

Answered
How to display Y, Cb and Cr components of an image?
While I agree with Image Analyst that grayscale representations of the chroma channels are accurate, easier to read, and should ...

21 giorni ago | 0

Answered
How to change 1 channel image to 3 channel
Alternative to using cat(), the same can also be done a couple other ways. You can use repmat() rgbpict = repmat(graypict,[1...

21 giorni ago | 0

Answered
how to preserve RGB values of an image while making it gray image
You don't. When you convert a color image to grayscale, you are discarding the color information. It's gone. If you want to...

21 giorni ago | 1

| accepted

Load more