Skip to content

Commit 246bd8c

Browse files
committed
Merge branch 'master' of github.com:synchro--/ADIP
2 parents 39638fe + b096712 commit 246bd8c

File tree

5 files changed

+5
-61
lines changed

5 files changed

+5
-61
lines changed

Diff for: Final Report.pdf

820 KB
Binary file not shown.

Diff for: README.md

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ This is a project about digital image processing, with particular regard to imag
33

44
The goals are:
55
<ul>
6-
<li>Implement an efficient approach to estimate the oriented gradient</li>
6+
<li>Implement an efficient approach to estimate the oriented gradient of histograms. </li>
77
<li>Utilize the local minimum of the latter as a seed for a morphological watershed segmentation</li>
88
</ul>
99

1010
<h3>Results</h3>
11-
We're working on it!
11+
12+
We succesfully managed to achieve both tasks. See "Final Report" to get an intro to the topics of this research and the presentation of our work and the idea behind the actual implementation of the algorithm, following the Arbelaez paper.
13+
14+
Soon more documentation will be added.

Diff for: code/final/optim_watershed.m

-36
Original file line numberDiff line numberDiff line change
@@ -155,39 +155,3 @@
155155
imshow(white1)
156156
title('Segmented Image')
157157
toc
158-
159-
160-
161-
% im = max(max(im))-im; % We will work with a negative image
162-
% so cells are dark (minima)
163-
164-
% Get some useful parameters of the image
165-
% imin = min(min(grad));
166-
% imax = max(max(grad));
167-
% [imheight, imwidth] = size(grad);
168-
%
169-
% raws=size(grad,1);
170-
% cols=size(grad,2);
171-
% % Initializes the catchment basins
172-
% CB = bwlabel(grad < imin+1); % C[min+1] = T[min+1]
173-
174-
% Stablishing a neighbourhood of 20 pixels in which there will only be one
175-
% seed
176-
% J=integralImage(CB);
177-
% for r=10:raws-10
178-
% for c=10:cols-10
179-
% if CB(r,c)>0,
180-
% [sR sC eR eC] = deal(r-9,c-9,r+10,c+10);
181-
% regionSum = J(eR+1,eC+1) - J(eR+1,sC) - J(sR,eC+1) + J(sR,sC);
182-
% if regionSum~=CB(r,c)
183-
% for i=-9:1:10
184-
% for j=-9:1:10
185-
% if CB(r+i,c+j)>0
186-
% CB(r+i,c+j)=0;
187-
% end
188-
% end
189-
% end
190-
% end
191-
% end
192-
% end
193-
% end

Diff for: code/final/watershed_transform.m

-23
Original file line numberDiff line numberDiff line change
@@ -145,26 +145,3 @@
145145
imshow(white1)
146146
title('Segmented Image')
147147
toc
148-
149-
150-
% Idea to remove the seeds from small areas
151-
% Stablishing a neighbourhood of 20 pixels in which there will only be one
152-
% seed
153-
% J=integralImage(CB);
154-
% for r=10:raws-10
155-
% for c=10:cols-10
156-
% if CB(r,c)>0,
157-
% [sR sC eR eC] = deal(r-9,c-9,r+10,c+10);
158-
% regionSum = J(eR+1,eC+1) - J(eR+1,sC) - J(sR,eC+1) + J(sR,sC);
159-
% if regionSum~=CB(r,c)
160-
% for i=-9:1:10
161-
% for j=-9:1:10
162-
% if CB(r+i,c+j)>0
163-
% CB(r+i,c+j)=0;
164-
% end
165-
% end
166-
% end
167-
% end
168-
% end
169-
% end
170-
% end

Diff for: dipimage_user_manual.pdf

-497 KB
Binary file not shown.

0 commit comments

Comments
 (0)