Document:

<PAGE>
                                                                    EXHIBIT 10.4

                                 FIRST AMENDMENT
                                       TO
                          LOAN AND SECURITY AGREEMENT

      This First Amendment to Loan and Security Agreement is entered into as of
October 21, 2003 (the "Amendment"), by and between COMERICA BANK, successor by
merger to Comerica Bank-California ("Bank") and CHROMAVISION MEDICAL SYSTEMS,
INC. ("Borrower").

                                    RECITALS

      Borrower and Bank are parties to that certain Loan and Security Agreement
dated as of February 13, 2003, as amended from time to time (the "Loan
Agreement"). The parties desire to amend the Loan Agreement in accordance with
the terms of this Amendment.

      NOW, THEREFORE, the parties agree as follows:

1. Bank hereby waives Borrower's compliance with Sections 6.7 and 6.8 of the
Loan Agreement, as in effect prior to the date of this Amendment, for the period
ending August 31, 2003, only.

2. Section 6.7 of the Loan Agreement hereby is amended and restated in its
entirety to read as follows:

      "6.7 [Intentionally Omitted.]

3. Section 6.8 of the Loan Agreement hereby is amended and restated in its
entirety to read as follows:

      "6.9 Tangible Net Worth. Beginning with the month ended August 31, 2003,
Borrower shall maintain, as of the last day of each calendar month, a Tangible
Net Worth of not less than Two Million Dollars ($2,000,000)."

4. Exhibit C to the Loan Agreement hereby is amended and replaced with Exhibit C
attached hereto.

5. Unless otherwise defined, all capitalized terms in this Amendment shall be as
defined in the Loan Agreement, as applicable. Except as amended, the Loan
Agreement remains in full force and effect.

6. Borrower represents and warrants that the representations and warranties
contained in the Loan Agreement are true and correct as of the date of this
Amendment (provided, however, that those representations and warranties
expressly referring to another date shall be true and correct in all material
respects as of such date), and that no Event of Default has occurred and is
continuing.

7. This Amendment may be executed in two or more counterparts, each of which
shall be deemed an original, but all of which together shall constitute one
instrument.

8. As a condition to the effectiveness of this Amendment, Bank shall have
received, in form and substance satisfactory to Bank, the following:

      (a) this Amendment, duly executed by Borrower;

      (b) a certificate of the Secretary of Borrower with respect to incumbency
and resolutions authorizing the execution and delivery of this Agreement;

      (c) an amendment fee in the amount of $5,000, which shall be due and
payable and nonrefundable on the date hereof, and which may be debited from any
of Borrower's accounts;

                                      -1-
<PAGE>
      (d) an amount equal to all Bank Expenses incurred to date in connection
with the Loan Agreement, to the extent not previously received by Bank, which
may be debited from any of Borrower's accounts; and

      (e) such other documents, and completion of such other matters, as Bank
may reasonably deem necessary or appropriate.

      IN WITNESS WHEREOF, the undersigned have executed this Amendment as of the
first date above written.

                                COMERICA BANK
                                successor by merger to Comerica Bank-California

                                By:    /s/ DEREK HOYT
                                       -----------------------------------------
                                Name:  Derek Hoyt
                                       -----------------------------------------
                                Title: Asst Vice President
                                       -----------------------------------------

                                CHROMAVISION MEDICAL SYSTEMS, INC.

                                By:    /s/ STEPHEN T. D. DIXON
                                       -----------------------------------------
                                Name:  Stephen T. D. Dixon
                                       -----------------------------------------
                                Title: EVP and CFO
                                       -----------------------------------------

                                      -2-
<PAGE>
                                    EXHIBIT C
                             COMPLIANCE CERTIFICATE

TO:      COMERICA BANK-CALIFORNIA

FROM:   CHROMAVISION MEDICAL SYSTEMS, INC.

      The undersigned authorized officer of CHROMAVISION MEDICAL SYSTEMS, INC.
hereby certifies that in accordance with the terms and conditions of the Loan
Agreement between Borrower and Bank (the "Agreement"), (i) Borrower is in
complete compliance for the period ending 9/30/03 with all required
covenants except as noted below and (ii) all representations and warranties of
Borrower stated in the Agreement are true and correct in all material respects
as of the date hereof. Attached herewith are the required documents supporting
the above certification. The Officer further certifies that these are prepared
in accordance with Generally Accepted Accounting Principles (GAAP) and are
consistently applied from one period to the next except as explained in an
accompanying letter or footnotes.

PLEASE INDICATE COMPLIANCE STATUS BY CIRCLING YES/NO UNDER "COMPLIES" COLUMN.

<TABLE>
<CAPTION>
REPORTING COVENANT                                      REQUIRED                       COMPLIES
------------------                                      --------                       --------
<S>                                                     <C>                            <C>
Monthly financial statements                            Monthly within 30 days          Yes  No
Annual (CPA Audited)                                    FYE within 120 days             Yes  No
10K and 10Q                                             (as applicable)                 Yes  No
Total amount of Borrower's cash and investments         Amount:  $2,696,568             Yes  No
Total amount of Borrower's cash and investments         Amount:  $2,696,568             Yes  No
maintained with Bank
</TABLE>

<TABLE>
<CAPTION>
FINANCIAL COVENANT                               REQUIRED            ACTUAL        COMPLIES
------------------                               --------            ------        --------
<S>                                              <C>                 <C>           <C>
Measured on a Monthly  Basis:
         Minimum Tangible Net Worth              $2,000,000          $5,763,131      Yes No
</TABLE>

COMMENTS REGARDING EXCEPTIONS:  See Attached.

Sincerely,

/s/ STEPHEN T. D. DIXON
---------------------------------------------
SIGNATURE

EVP and CFO
---------------------------------------------
TITLE

---------------------------------------------
DATE

BANK USE ONLY

Received by:
            ---------------------------------
                       AUTHORIZED SIGNER

Date:

            ---------------------------------
Verified:

            ---------------------------------
                       AUTHORIZED SIGNER

Date:
            ---------------------------------

Compliance Status              Yes        No

                                       3
<PAGE>

                        CORPORATE RESOLUTIONS TO BORROW

BORROWER:         CHROMAVISION MEDICAL SYSTEMS, INC.

      I, the undersigned Secretary or Assistant Secretary of CHROMAVISION
MEDICAL SYSTEMS, INC. (the "Corporation"), HEREBY CERTIFY that the Corporation
is organized and existing under and by virtue of the laws of the State of
Delaware.

      I FURTHER CERTIFY that attached hereto as Attachments 1 and 2 are true and
complete copies of the Certificate of Incorporation, as amended, and the
Restated Bylaws of the Corporation, each of which is in full force and effect on
the date hereof.

      I FURTHER CERTIFY that at a meeting of the Directors of the Corporation,
duly called and held, at which a quorum was present and voting (or by other duly
authorized corporate action in lieu of a meeting), the following resolutions
were adopted.

      BE IT RESOLVED, that any two (2) of the following named officers,
employees, or agents of this Corporation, whose actual signatures are shown
below:

<TABLE>
<CAPTION>
NAMES                        POSITION                       ACTUAL SIGNATURES
<S>                      <C>                              <C>
-------------            -----------------------          ---------------------

-------------            -----------------------          ---------------------
Carl W. Apfelbach        President and CEO                /s/ CARL W. APFELBACH
-------------            -----------------------          ---------------------
Stephen T.D. Dixon       EVP and CFO                      /s/ STEPHEN T.D. DIXON
-------------            -----------------------          ---------------------
</TABLE>

acting for and on behalf of this Corporation and as its act and deed be, and
they hereby are, authorized and empowered:

      BORROW MONEY. To borrow from time to time from Comerica Bank-California
("Bank"), on such terms as may be agreed upon between the officers, employees,
or agents of the Corporation and Bank, such sum or sums of money as in their
judgment should be borrowed, without limitation.

      EXECUTE LOAN DOCUMENTS. To execute and deliver to Bank that certain Loan
Agreement dated as of February 13, 2003 as amended by that certain First
Amendment to Loan and Security Agreement dated as of October 21, 2003 (the "Loan
Agreement") and any other agreement entered into between Corporation and Bank in
connection with the Loan Agreement, including any amendments, all as amended or
extended from time to time (collectively, with the Loan Agreement, the "Loan
Documents"), and also to execute and deliver to Bank one or more renewals,
extensions, modifications, refinancings, consolidations, or substitutions for
the Loan Documents, or any portion thereof.

      NEGOTIATE ITEMS . To draw, endorse, and discount with Bank all drafts,
trade acceptances, promissory notes, or other evidences of indebtedness payable
to or belonging to the Corporation or in which the Corporation may have an
interest, and either to receive cash for the same or to cause such proceeds to
be credited to the account of the Corporation with Bank, or to cause such other
disposition of the proceeds derived therefrom as they may deem advisable.

      FURTHER ACTS. In the case of lines of credit, to designate additional or
alternate individuals as being authorized to request advances thereunder, and in
all cases, to do and perform such other acts and things, to pay any

                                       1
<PAGE>
and all fees and costs, and to execute and deliver such other documents and
agreements as they may in their discretion deem reasonably necessary or proper
in order to carry into effect the provisions of these Resolutions.

      BE IT FURTHER RESOLVED, that any and all acts authorized pursuant to these
resolutions and performed prior to the passage of these resolutions are hereby
ratified and approved, that these Resolutions shall remain in full force and
effect and Bank may rely on these Resolutions until written notice of their
revocation shall have been delivered to and received by Bank. Any such notice
shall not affect any of the Corporation's agreements or commitments in effect at
the time notice is given.

      I FURTHER CERTIFY that the officers, employees, and agents named above are
duly elected, appointed, or employed by or for the Corporation, as the case may
be, and occupy the positions set forth opposite their respective names; that the
foregoing Resolutions now stand of record on the books of the Corporation; and
that the Resolutions are in full force and effect and have not been modified or
revoked in any manner whatsoever.

      IN WITNESS WHEREOF, I have hereunto set my hand on October __, 2003 and
attest that the signatures set opposite the names listed above are their genuine
signatures.

                                        CERTIFIED AND ATTESTED BY:

                                        X
                                         ---------------------------------------

                                       2
<PAGE>
                            AFFIRMATION OF GUARANTY

      This AFFIRMATION OF GUARANTY is made as of October 21, 2003, by the
undersigned (each, a "Guarantor" and collectively, the "Guarantors") for the
benefit of Comerica Bank ("Bank").

                                    RECITALS

      Bank and CHROMAVISION MEDICAL SYSTEMS, INC. ("Borrower") are parties to
that certain Loan and Security Agreement dated as of February 13, 2003, as
amended from time to time (collectively, the "Loan Agreement"). Each Guarantor
executed for the benefit of Bank an Unconditional Guaranty dated as of even date
with the Loan Agreement (the "Guaranty"), guarantying all amounts owing by
Borrower to Bank. Borrower and Bank propose to enter into an Amendment to Loan
and Security Agreement of even date herewith (the "Amendment"), which provides
that Bank will, under certain circumstances, amends the Loan Agreement by, among
other things, waiving and resetting certain financial covenants. Bank has agreed
to enter into the Amendment provided, among other things, that each Guarantor
consents to the entry by Borrower into the Amendment and related documents and
agrees that the Guaranty will remain effective.

                                   AGREEMENT

      NOW, THEREFORE, each Guarantor agrees as follows:

1. Guarantor consents to the execution, delivery and performance by Borrower of
the Amendment and the documents and instruments executed in connection
therewith, as well as all other amendments and modifications to the Loan
Agreement.

2. The Guaranty is and shall remain in full force and effect with respect to all
of Borrower's Obligations (as defined in the Loan Agreement) as modified by the
Amendment and otherwise. Guarantor confirms that Guarantor has no defenses
against its obligations under the Guaranty.

3. Guarantor represents and warrants that the Representations and Warranties
contained in the Guaranty are true and correct as of the date of this
Affirmation. Unless otherwise defined, all capitalized terms in this Affirmation
shall be as defined in the Guaranty.

      IN WITNESS WHEREOF, the undersigned Guarantor has executed this
Affirmation of Guaranty as of the first date above written.

                                          SAFEGUARD SCIENTIFICS (DELAWARE), INC.

                                          By:
                                                --------------------------------
                                          Title:
                                                --------------------------------

                                          SAFEGUARD SCIENTIFICS (DELAWARE), INC.

                                          By:
                                                --------------------------------
                                          Title:
                                                --------------------------------

                                       3<PAGE>
                                                                    EXHIBIT 10.5

                                PROMISSORY NOTE

                                 Sept. 24, 2003
                               ------------------
                                     (Date)

FOR VALUE RECEIVED, CHROMAVISION MEDICAL SYSTEMS, INC. a corporation located at
the address stated below ("MAKER") promises, jointly and severally if more than
one, to pay to the order of GENERAL ELECTRIC CAPITAL CORPORATION or any
subsequent holder hereof (each, a "PAYEE") at its office located at 401 MERRITT
7 SUITE 23, NORWALK, CT 06851-1177 or at such other place as Payee or the
holder hereof may designate, the principal sum of THREE MILLION--00/00 DOLLARS
($3,000,000.00), with interest on the unpaid principal balance, from the date
hereof through and including the dates of payment, at a fixed interest rate of
Eight and Sixteen Hundredths percent (8.16%) per annum, to be paid in lawful
money of the United States, in Thirty Three (33) consecutive monthly
installments of principal and interest as follows:

<Table>
<Caption>

      Periodic
     Installment             Amount
     -----------             ------
<S>                          <C>
     Thirty Two (32)         $101,797.70
</Table>

each ("Periodic Installment") and a final installment which shall be in the
amount of the total outstanding principal and interest. The first Periodic
Installment shall be due and payable on Nov. 1, 2003 and the following Periodic
Installments and the final installment shall be due and payable on the same day
of each succeeding month (each, a "Payment Date"). Such installments have been
calculated on the basis of a 360 day year of twelve 30-day months. Each payment
may, at the option of the Payee, be calculated and applied on an assumption that
such payment would be made on its due date.

The acceptance by Payee of any payment which is less than payment in full of
all amounts due and owing at such time shall not constitute a waiver of Payee's
right to receive payment in full at such time or at any prior or subsequent
time.

The Maker hereby expressly authorizes the Payee to insert the date value is
actually given in the blank space on the face hereof and on all related
documents pertaining hereto.

This Note may be secured by a security agreement, chattel mortgage, pledge
agreement or like instrument (each of which is hereinafter called a "SECURITY
AGREEMENT").

Time is the essence hereof. If any installment or any other sum due under this
Note or any Security Agreement is not received within ten (10) days after its
due date, the Maker agrees to pay, in addition to the amount of each such
installment or other sum, a late payment charge of five percent (5%) of the
amount of said installment or other sum, but not exceeding any lawful maximum.
If (i) Maker fails to make payment of any amount due hereunder within ten (10)
days after the same becomes due and payable; or (ii) Maker is in default under,
or fails to perform under any term or condition contained in any Security
Agreement, then the entire principal sum remaining unpaid, together with all
accrued interest thereon and any other sum payable under this Note or any
Security Agreement, at the election of Payee, shall immediately become due and
payable, with interest thereon at the lesser of eighteen percent (18%) per annum
or the highest rate not prohibited by applicable law from the date of such
accelerated maturity until paid (both before and after any judgment).

The Maker may prepay in full, but not in part, its entire indebtedness
hereunder upon payment of the entire indebtedness plus an additional sum as a
premium equal to the following percentages of the remaining principal balance
for the indicated period:
Prior to the first annual anniversary date of this Note: five percent (5%)
Thereafter and prior to the second annual anniversary date of this Note: three
percent (3%)
Thereafter and prior to the third annual anniversary date of this Note: One
percent (1%)
and zero percent (0%) thereafter, plus all other sums due hereunder or under
any Security Agreement.

It is the intention of the parties hereto to comply with the applicable usury
laws; accordingly, it is agreed that, notwithstanding any provision to the
contrary in this Note or any Security Agreement, in no event shall this Note
or any Security Agreement require the payment or permit the collection of
interest in excess of the maximum amount permitted by applicable law. If any
such excess interest is contracted for, charged or received under this Note or
any Security Agreement, or if all of the principal balance shall be prepaid, so
that under any of such circumstances the amount of interest contracted for,
charged or received under this Note or any Security Agreement on the principal
balance shall exceed the maximum amount of interest permitted by applicable
law, then in such event (a) the provisions of this paragraph shall govern and
control, (b) neither Maker nor any other person or entity now or hereafter
liable for the payment hereof shall be obligated to pay the amount of such
interest to the extent that it is in excess of the maximum amount of interest
permitted by applicable law, (c) any such excess which may have been collected
shall be either applied as a credit against the then unpaid principal balance
or refunded to Maker, at the option of the Payee, and (d) the effective rate of
interest shall be automatically reduced to the maximum lawful contract rate
allowed under applicable law as now or hereafter construed by the courts having
jurisdiction thereof. It is further agreed that without limitation of the
foregoing, all calculations of the rate of interest contracted for, charged or
received under this Note or any Security Agreement which are made for the
purpose of determining whether such rate exceeds the maximum lawful contract
rate, shall be made, to the extent permitted by applicable law, by amortizing,
prorating, allocating and spreading in equal parts during the period of the
full stated term of the indebtedness evidenced hereby, all interest at any
time contracted for, charged or received from Maker or otherwise by Payee in
connection with such indebtedness; provided, however, that if any applicable
state law is amended or the law of the United States of America preempts any
applicable state law, so that it becomes lawful for the Payee to receive a
greater interest per annum rate than is presently allowed, the Maker agrees
that, on the effective date of such amendment or preemption, as the case may
be, the lawful maximum hereunder shall be increased to the maximum interest per
annum rate allowed by the amended state law or the law of the United States of
America.

The Maker and all sureties, endorsers, guarantors or any others (each such
person, other than the Maker, an "OBLIGOR") who may at any time become liable
for the payment hereof jointly and severally consent hereby to any and all
extensions of time, renewals, waivers or modifications of, and all
substitutions or releases of, security or of any party primarily or secondarily
liable on this Note or any Security Agreement or any term and provision of
either, which may be made, granted or consented to by Payee, and agree that
suit may be brought and maintained against any one or more of them, at the
election of Payee without joinder of any other as a party thereto, and that
Payee shall not be required first to foreclose, proceed against, or exhaust any
security hereof in order to enforce payment of this Note. The Maker and each
Obligor hereby waives presentment, demand for payment, notice of nonpayment,
protest, notice of protest, notice of dishonor, and all other notices in
connection herewith, as well as filing of suit (if permitted by law) and
diligence in collecting this Note or enforcing any of the security hereof, and
agrees to pay (if permitted by law) all expenses incurred in collection,
including Payee's actual attorneys' fees. Maker and each Obligor agrees that
fees not in excess of twenty percent (20%) of the amount then due shall be
deemed reasonable.

THE MAKER HEREBY UNCONDITIONALLY WAIVES ITS RIGHT TO A JURY TRIAL OF ANY CLAIM
OR CAUSE OF ACTION BASED UPON OR ARISING OUT OF, DIRECTLY OR INDIRECTLY, THIS
NOTE, ANY OF THE RELATED DOCUMENTS, ANY DEALINGS BETWEEN MAKER AND PAYEE
RELATING TO THE SUBJECT MATTER OF THIS TRANSACTION OR ANY RELATED TRANSACTIONS,
AND/OR THE RELATIONSHIP THAT IS BEING ESTABLISHED BETWEEN MAKER AND PAYEE. THE
SCOPE OF THIS WAIVER IS INTENDED TO BE ALL ENCOMPASSING OF ANY AND ALL DISPUTES
THAT MAY BE FILED IN ANY COURT (INCLUDING, WITHOUT LIMITATION, CONTRACT CLAIMS,
TORT CLAIMS, BREACH OF DUTY CLAIMS, AND ALL OTHER COMMON LAW AND STATUTORY
CLAIMS.) THIS WAIVER IS IRREVOCABLE MEANING THAT IT MAY NOT BE MODIFIED EITHER
ORALLY OR IN WRITING, AND THE WAIVER SHALL APPLY TO ANY SUBSEQUENT AMENDMENTS,
RENEWALS, SUPPLEMENTS OR MODIFICATIONS TO THE NOTE, ANY RELATED DOCUMENTS, OR
TO ANY OTHER DOCUMENTS OR AGREEMENTS RELATING TO THIS TRANSACTION OR ANY
RELATED TRANSACTION. IN THE EVENT OF LITIGATION, THIS NOTE MAY BE FILED AS A
WRITTEN CONSENT TO A TRIAL BY THE COURT.

This Note and any Security Agreement constitute the entire agreement of the
Maker and Payee with respect to the subject matter hereof and supercedes all
prior understandings, agreements and representations, express or implied.

No variation or modification of this Note, or any waiver of any of its
provisions or conditions, shall be valid unless in writing and signed by an
authorized representative of Maker and Payee. Any such waiver, consent,
modification or change shall be effective only in the specific instance and for
the specific purpose given.

Any provision in this Note or any Security Agreement which is in conflict with
any statute, law or applicable rule shall be deemed omitted, modified or
altered to conform thereto.

                                            CHROMAVISION MEDICAL SYSTEMS, INC.

                                            By:     /s/ Stephen Dixon
------------------------------------           ---------------------------------
(Witness)

                                            Name:   Stephen Dixon
------------------------------------             -------------------------------
(Print name)

                                            Title:        EUP-CFO
------------------------------------              ------------------------------
(Address)

                                            Federal Tax ID #:  752649072
                                                             -------------------

                                            Address: 33171 Paseo Cerveza,
                                                     San Juan Capistrano,
                                                     Orange County, CA 92675

Source: [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00058-of-00352.parquet"}, [{"source": "alea-institute/alea-institute/kl3m-data-edgar-agreements/train-00058-of-00352.parquet"}]]