답변 있음
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 ...

10일 전 | 0

답변 있음
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...

10일 전 | 1

| 수락됨

답변 있음
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 ...

10일 전 | 0

| 수락됨

답변 있음
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) ...

11일 전 | 0

| 수락됨

답변 있음
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...

11일 전 | 0

답변 있음
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...

11일 전 | 0

답변 있음
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...

11일 전 | 0

답변 있음
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)....

11일 전 | 0

| 수락됨

답변 있음
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...

12일 전 | 0

답변 있음
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...

12일 전 | 0

답변 있음
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...

13일 전 | 0

| 수락됨

답변 있음
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...

13일 전 | 0

| 수락됨

답변 있음
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 ...

17일 전 | 0

답변 있음
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 ...

17일 전 | 0

답변 있음
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...

17일 전 | 0

답변 있음
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...

17일 전 | 0

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

18일 전 | 0

답변 있음
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 ...

18일 전 | 0

답변 있음
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...

18일 전 | 0

답변 있음
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...

18일 전 | 1

| 수락됨

답변 있음
someone who can help me to correct my problem please????
Since n is defined, and you're using cell mode, then I have to assume the problem is that you're running the last code section b...

18일 전 | 0

답변 있음
how to convert a gray scale image to color image using matlab
To answer the original intent of the question, there is no trivial way to return a grayscale image back to its original color. ...

18일 전 | 0

답변 있음
switch between colors on image
A lot of people are looking at this old thread, so I assume their needs are not necessarily the same as the OP. I think when mo...

19일 전 | 0

| 수락됨

답변 있음
How to get all possible permutations in binary format?
I'm not sure, but are you thinking of something like this? B = [0,1,0;0,0,1;1,1,0;0,1,1;1,0,1;1,0,0]; % all permutations of ...

21일 전 | 0

| 수락됨

답변 있음
How to avoid color repetition in plotting lines
The colors used by line plots are drawn from the 'colororder' property of the parent axes. By default, this is set to lines(7),...

21일 전 | 1

| 수락됨

답변 있음
Index in position 1 exceeds array bounds. Erroy when trying to plot rectangle.
I don't know why you decided to suddenly abandon your indexing scheme. Replace all this: n = numberRooms(1,1); for i = 1:1:n ...

21일 전 | 1

| 수락됨

답변 있음
How to find closest values within a matirx
I'm not really sure what you mean by "closest values". Maybe you're talking about inpainting? A = [NaN NaN NaN 7 8 9; NaN...

21일 전 | 0

답변 있음
How to delete a file I submitted on File Exchange ?
If you just want to delete the whole submission, there should be a button on the upper right. If you have a submission cons...

21일 전 | 0

답변 있음
Red channel compensation in underwater images in-order to implement in matlab?
As far as I understand it, there isn't one equation; there are various techniques of differing complexity. I don't see any that...

21일 전 | 1

| 수락됨

답변 있음
How do I assign colours to every plotted dot if I have the colours as cell arrays
Normally, you'd do this by using a colortable (or a list of indices into a color table) with scatter(). x = 1:4; y = 1:4; c...

21일 전 | 0